Salome HOME
Crash on abort of any non-sketch operation.
[modules/shaper.git] / src / XGUI / XGUI_MainMenu.cpp
index 3002194871042bc4dd8fe5457e81b89c1d4d0940..d874cc974d48745772d71c12124baf12a7cdd1b4 100644 (file)
@@ -135,7 +135,7 @@ int XGUI_MainMenu::menuHeight() const
 
 int XGUI_MainMenu::menuItemRowsCount() const
 {
-  const int kDefaultRowsCount = 3;
+  static const int kDefaultRowsCount = 3;
   int aRowsCount = XGUI_Preferences::resourceMgr()->integerValue(XGUI_Preferences::MENU_SECTION,
                                                                  "rows_number", kDefaultRowsCount);
   return aRowsCount;