From: nds Date: Thu, 11 May 2017 07:04:53 +0000 (+0300) Subject: Issue #2156 Impossible to valid the sketch: Lines should be <= 100 characters long X-Git-Tag: V_2.7.1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9700e1712aef912a42dfcdc9193a44b81effafc7;p=modules%2Fshaper.git Issue #2156 Impossible to valid the sketch: Lines should be <= 100 characters long --- diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index ac9924711..d7aa1f858 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -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