Gui: fix several regressions in DlgSettingsColorGradientImp
* make line edit fields wide enough to not truncate the text * fix error: Unhandled Base::Exception caught in GUIApplication::notify.
This commit is contained in:
@@ -199,7 +199,13 @@ float SoFCColorBar::getMaxValue () const
|
||||
|
||||
bool SoFCColorBar::customize()
|
||||
{
|
||||
return this->getActiveBar()->customize();
|
||||
try {
|
||||
return this->getActiveBar()->customize();
|
||||
}
|
||||
catch (const Base::ValueError& e) {
|
||||
e.ReportException();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
App::Color SoFCColorBar::getColor( float fVal ) const
|
||||
|
||||
Reference in New Issue
Block a user