Salome HOME
Merge remote-tracking branch 'origin/EDF_2019'
[modules/shaper.git] / src / ModuleBase / ModuleBase_Preferences.cpp
index 1cbe486e25a647d35e6a07c51ab4780a3ef0d147..68e275d213504e78b2adf87a9fdbfe3bdc53328f 100644 (file)
@@ -197,6 +197,16 @@ void ModuleBase_Preferences::createCustomPage(ModuleBase_IPrefMgr* thePref, int
             thePref->setItemProperty("max", aMax, anId);
           }
         }
+        if (aPrefType == SUIT_PreferenceMgr::IntSpin) {
+          if (aProp->min() != "") {
+            int aMin = QString(aProp->min().c_str()).toInt();
+            thePref->setItemProperty("min", aMin, anId);
+          }
+          if (aProp->max() != "") {
+            int aMax = QString(aProp->max().c_str()).toInt();
+            thePref->setItemProperty("max", aMax, anId);
+          }
+        }
       }
     }
   }