Skip to content
Extraits de code Groupes Projets

Api update

Fusionnées Kubat a demandé de fusionner api-update vers master
2 files
+ 7
7
Comparer les modifications
  • Côte à côte
  • En ligne

Fichiers

+ 3
6
@@ -92,13 +92,10 @@ VivyApplication::getMainWindow() const
return mainWindowPtr.get();
}
/*
* @return the current VivyDocument, or null if there isn't one or if the current document is not a VivyDocument
*/
VivyDocument *
VivyApplication::getCurrentVivyDocument() const
AbstractDocument *
VivyApplication::getCurrentDocument() const
{
if (!mainWindowPtr)
throw std::logic_error("No main window in the graphic VivyApplication");
return dynamic_cast<VivyDocument*>(mainWindowPtr.get()->getCurrentDocument());
return mainWindowPtr.get()->getCurrentDocument();
}
Chargement en cours