From 5f4908cac692cdceacd27e8d03fb80e72f317426 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 1 Aug 2007 13:21:44 +0000 Subject: [PATCH] Use SUIT_Study::Modified method --- src/VISU_I/VISU_ColoredPrs3d_i.cc | 10 +++++----- src/VISU_I/VISU_Prs3dUtils.cc | 4 +--- 2 files changed, 6 insertions(+), 8 deletions(-) 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(); - } } } }; -- 2.39.2