]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2966: Provide update of viewer on text color preference changed
authorvsv <vsv@opencascade.com>
Thu, 25 Jul 2019 15:41:51 +0000 (18:41 +0300)
committervsv <vsv@opencascade.com>
Thu, 25 Jul 2019 15:41:51 +0000 (18:41 +0300)
src/SHAPERGUI/SHAPERGUI.cpp

index fa1c50aa19578d7dd81789287d33d1975aaf12ac..3d3638025dc5620b3af9b09dd7cd85ab86471393 100644 (file)
@@ -820,7 +820,7 @@ void SHAPERGUI::createPreferences()
   pref->setItemProperty("min", 0, aItem);
   pref->setItemProperty("max", 100, aItem);
 
-  aItem = pref->addItem(tr("Text color"), colorScaleGroup,
+  aItem = aMgr.addPreference(tr("Text color"), colorScaleGroup,
     SUIT_PreferenceMgr::Color, ModuleBase_Preferences::VIEWER_SECTION, "scalar_bar_text_color");
 
   pref->retrieve();