]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2156 Impossible to valid the sketch: Lines should be <= 100 characters long
authornds <nds@opencascade.com>
Thu, 11 May 2017 07:04:53 +0000 (10:04 +0300)
committernds <nds@opencascade.com>
Thu, 11 May 2017 07:04:53 +0000 (10:04 +0300)
src/XGUI/XGUI_OperationMgr.cpp

index ac99247118721ec8df39363c731c581975ab0851..d7aa1f8583bbce65d64e014d1a5d84c839f388c4 100644 (file)
@@ -467,9 +467,7 @@ void XGUI_OperationMgr::onBeforeOperationStarted()
             .arg(aFOperation->isEditOperation())
             .arg(ModuleBase_Tools::objectName(aFeature)).toStdString().c_str());
     qDebug(QString("   document->currentFeature(false) = %1 : DO: setPreviousCurrentFeature").arg(
-            ModuleBase_Tools::objectName(
-            ModelAPI_Session::get()->activeDocument()->currentFeature(false)))
-            .toStdString().c_str());
+            ModuleBase_Tools::objectName(aDoc->currentFeature(false))).toStdString().c_str());
 #endif
 
     if (aFOperation->isEditOperation()) {// it should be performed by the feature edit only
@@ -477,8 +475,7 @@ void XGUI_OperationMgr::onBeforeOperationStarted()
       aDoc->setCurrentFeature(aFOperation->feature(), false);
 #ifdef DEBUG_CURRENT_FEATURE
       qDebug(QString("   document->setCurrentFeature(false) = %1").arg(
-             ModuleBase_Tools::objectName(
-             ModelAPI_Session::get()->activeDocument()->currentFeature(false))).toStdString().c_str());
+             ModuleBase_Tools::objectName(aDoc->currentFeature(false))).toStdString().c_str());
 #endif
       // this is the only place where flushes must be called after setCurrentFeature for the
       // current moment: after this the opertion is not finished, so, the ObjectBrowser