Salome HOME
Jenkins compilation correction
authornds <nds@opencascade.com>
Mon, 5 Dec 2016 04:52:39 +0000 (07:52 +0300)
committernds <nds@opencascade.com>
Mon, 5 Dec 2016 04:52:39 +0000 (07:52 +0300)
src/XGUI/XGUI_WorkshopListener.cpp

index 72cf265935f66f6b230d7fc618b95665b8d21805..45b343263db47a5c65ccf7bad8f018e18885bb91 100755 (executable)
@@ -420,9 +420,11 @@ void XGUI_WorkshopListener::
           XGUI_OperationMgr* anOperationMgr = workshop()->operationMgr();
           if (anOperationMgr->hasOperation()) {
             ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
-                                                                (anOperationMgr->currentOperation());
-            if (aFOperation && aFOperation->isEditOperation() && aFOperation->id() == "Remove_SubShapes") {
-              ResultCompSolidPtr aCompsolidResult = std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(anObject);
+                                                            (anOperationMgr->currentOperation());
+            if (aFOperation && aFOperation->isEditOperation() &&
+                aFOperation->id() == "Remove_SubShapes") {
+              ResultCompSolidPtr aCompsolidResult = 
+                                   std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(anObject);
               if (aCompsolidResult.get() != NULL) { // display all sub results
                 for(int i = 0; i < aCompsolidResult->numberOfSubs(); i++) {
                   ObjectPtr aSubObject = aCompsolidResult->subResult(i);