From 9700e1712aef912a42dfcdc9193a44b81effafc7 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 11 May 2017 10:04:53 +0300 Subject: [PATCH] Issue #2156 Impossible to valid the sketch: Lines should be <= 100 characters long --- src/XGUI/XGUI_OperationMgr.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 -- 2.39.2