From: nds Date: Thu, 9 Jul 2015 08:46:05 +0000 (+0300) Subject: 1. ExtrusionCut: Apply Sketch button(in tool bar) should be applyed only to the sketc... X-Git-Tag: V_1.3.0~61 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7e22794dc9f7e96ed777cc22c72aebe7eccbe9f;p=modules%2Fshaper.git 1. ExtrusionCut: Apply Sketch button(in tool bar) should be applyed only to the sketch. Correction to check an operation on zero state --- diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index 15455fe1b..85892d74b 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -195,7 +195,7 @@ bool XGUI_OperationMgr::isParentOperationValid() const bool isValid = false; // the enable state of the parent operation of the nested one is defined by the rules that // firstly there are nested operations and secondly the parent operation is valid - ModuleBase_Operation* aPrevOp; + ModuleBase_Operation* aPrevOp = 0; Operations::const_iterator anIt = myOperations.end(); if (anIt != myOperations.begin()) { // there are items in the operations list --anIt;