]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
untabify
authoreap <eap@opencascade.com>
Fri, 11 Feb 2011 15:20:04 +0000 (15:20 +0000)
committereap <eap@opencascade.com>
Fri, 11 Feb 2011 15:20:04 +0000 (15:20 +0000)
src/OBJECT/SMESH_ActorUtils.cxx

index 36e40e6797c1f80099959964e9e1cb9fd03d6461..fd928dc560905d07531db949e004dea5c2c83bc6 100644 (file)
@@ -153,9 +153,9 @@ namespace SMESH
     
     if(theActor->GetPlot2Histogram())
       if(aType == UpdateIn2dViewer)
-       aHistogram = theActor->UpdatePlot2Histogram();
+        aHistogram = theActor->UpdatePlot2Histogram();
       else
-       aHistogram = theActor->GetPlot2Histogram();
+        aHistogram = theActor->GetPlot2Histogram();
     else 
       return;
     
@@ -167,14 +167,14 @@ namespace SMESH
     SUIT_ViewManager* aViewManager;
     foreach( aViewManager, aViewManagerList ) {
       if (Plot2d_ViewManager* aManager = dynamic_cast<Plot2d_ViewManager*>(aViewManager)) {
-       if (SPlot2d_Viewer* aViewer = dynamic_cast<SPlot2d_Viewer*>(aManager->getViewModel())) {
-         if (Plot2d_ViewFrame* aViewFrame = aViewer->getActiveViewFrame()) {
-           if(aType == UpdateIn2dViewer )
-             aViewFrame->displayObject(aHistogram, true);
-           else if (aType == RemoveFrom2dViewer)
-             aViewFrame->eraseObject(aHistogram, true);
-         }
-       }
+        if (SPlot2d_Viewer* aViewer = dynamic_cast<SPlot2d_Viewer*>(aManager->getViewModel())) {
+          if (Plot2d_ViewFrame* aViewFrame = aViewer->getActiveViewFrame()) {
+            if(aType == UpdateIn2dViewer )
+              aViewFrame->displayObject(aHistogram, true);
+            else if (aType == RemoveFrom2dViewer)
+              aViewFrame->eraseObject(aHistogram, true);
+          }
+        }
       }
     }
   }