]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Use SUIT_Study::Modified method BR_MULTIPR_INDUS mergeto_BR_Dev_For_4_0_30Aug07
authorapo <apo@opencascade.com>
Wed, 1 Aug 2007 13:21:44 +0000 (13:21 +0000)
committerapo <apo@opencascade.com>
Wed, 1 Aug 2007 13:21:44 +0000 (13:21 +0000)
src/VISU_I/VISU_ColoredPrs3d_i.cc
src/VISU_I/VISU_Prs3dUtils.cc

index 54cd8f03543be06b6f36b1b7e1d108ab731c24d5..2998dd50130a008d9296ecc6361ccd6775921af7 100644 (file)
@@ -527,9 +527,10 @@ VISU::ColoredPrs3d_i
     
     //  "SetRange" function changes "myIsFixedRange" attribute,
     // so, it is necessary pay a special attention if "this" equal to "theOrigin"
-    bool anIsFixedRange = anOrigin->IsRangeFixed(); 
-    SetRange(anOrigin->GetMin(), anOrigin->GetMax());
-    UseFixedRange(anIsFixedRange);
+    if(anOrigin->IsRangeFixed())
+      SetRange(anOrigin->GetMin(), anOrigin->GetMax());
+    else
+      SetSourceRange();
 
     SetPosition(anOrigin->GetPosX(), anOrigin->GetPosY());
     SetSize(anOrigin->GetWidth(), anOrigin->GetHeight());
@@ -551,7 +552,6 @@ VISU::ColoredPrs3d_i
     anOrigin->GetLabelColor(&r,&g,&b);
     SetLabelColor(r,g,b);
 
-    UseFixedRange( anOrigin->IsRangeFixed() );
     myIsTimeStampFixed = anOrigin->IsTimeStampFixed();
 
     SetHolderEntry( anOrigin->GetHolderEntry() );
@@ -1036,7 +1036,7 @@ void
 VISU::ColoredPrs3d_i
 ::SetLblFontType(int theLblFontType)
 {
-  if(myIsShadowLabel == theLblFontType)
+  if(myLblFontType == theLblFontType)
     return;
 
   VISU::TSetModified aModified(this);
index abd189da42fecffba2325366cc79e23622fc1826..f99e7843bacf8782f321a4d365de05e71d0bd263 100644 (file)
@@ -61,10 +61,8 @@ namespace VISU
          return;
        
        if(aPrs3d->GetMTime() > mySetModified->GetMTime()){
-         if(SalomeApp_Study* aStudy = aPrs3d->GetGUIStudy()){
-           aPrs3d->GetStudyDocument()->Modified();
+         if(SalomeApp_Study* aStudy = aPrs3d->GetGUIStudy())
            aStudy->Modified();
-         }
        }
       }
     };