// "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());
anOrigin->GetLabelColor(&r,&g,&b);
SetLabelColor(r,g,b);
- UseFixedRange( anOrigin->IsRangeFixed() );
myIsTimeStampFixed = anOrigin->IsTimeStampFixed();
SetHolderEntry( anOrigin->GetHolderEntry() );
VISU::ColoredPrs3d_i
::SetLblFontType(int theLblFontType)
{
- if(myIsShadowLabel == theLblFontType)
+ if(myLblFontType == theLblFontType)
return;
VISU::TSetModified aModified(this);
return;
if(aPrs3d->GetMTime() > mySetModified->GetMTime()){
- if(SalomeApp_Study* aStudy = aPrs3d->GetGUIStudy()){
- aPrs3d->GetStudyDocument()->Modified();
+ if(SalomeApp_Study* aStudy = aPrs3d->GetGUIStudy())
aStudy->Modified();
- }
}
}
};