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:
wmayer
2022-03-29 08:49:42 +02:00
parent 2853f6715a
commit b2df95a66d
2 changed files with 13 additions and 2 deletions

View File

@@ -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