From: apo Date: Wed, 1 Aug 2007 13:21:44 +0000 (+0000) Subject: Use SUIT_Study::Modified method X-Git-Tag: mergeto_BR_Dev_For_4_0_30Aug07 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_MULTIPR_INDUS;p=modules%2Fvisu.git Use SUIT_Study::Modified method --- diff --git a/src/VISU_I/VISU_ColoredPrs3d_i.cc b/src/VISU_I/VISU_ColoredPrs3d_i.cc index 54cd8f03..2998dd50 100644 --- a/src/VISU_I/VISU_ColoredPrs3d_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3d_i.cc @@ -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); diff --git a/src/VISU_I/VISU_Prs3dUtils.cc b/src/VISU_I/VISU_Prs3dUtils.cc index abd189da..f99e7843 100644 --- a/src/VISU_I/VISU_Prs3dUtils.cc +++ b/src/VISU_I/VISU_Prs3dUtils.cc @@ -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(); - } } } };