]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
a fix for bug #98 and rectangle, concerned to SALOME 7.5.1
authornds <natalia.donis@opencascade.com>
Sat, 27 Dec 2014 15:41:37 +0000 (18:41 +0300)
committernds <natalia.donis@opencascade.com>
Sat, 27 Dec 2014 15:41:37 +0000 (18:41 +0300)
The commented code should be removed after test campaign

src/ModuleBase/ModuleBase_Preferences.cpp
src/NewGeom/NewGeom_SalomeViewer.cpp

index c550b23a610825cdd4936a7a2654427507a35046..50d95a7a0ad90b87c6e5270c567e72b187bbb8e9 100644 (file)
@@ -288,12 +288,12 @@ void ModuleBase_PreferencesDlg::modified(ModuleBase_Prefs& theModified) const
 void ModuleBase_PreferencesDlg::onDefault()
 {
   // reset main resources
-#ifdef SALOME_750 // until SALOME 7.5.0 is released
+//#ifdef SALOME_750 // until SALOME 7.5.0 is released
   QtxResourceMgr::WorkingMode aPrev =
       myPreferences->resourceMgr()->setWorkingMode(QtxResourceMgr::IgnoreUserValues);
   myPreferences->retrieve();
   myPreferences->resourceMgr()->setWorkingMode(aPrev);
-#endif
+//#endif
   // reset plugin's resources
   ModuleBase_Preferences::resetConfig();
   ModuleBase_Preferences::updateResourcesByConfig();
index 8fe9bd862ce0662f02e3b90a5385616ca6f2b78d..b1810b0e9ca183777d8fc38d5af4602d5d74abfe 100644 (file)
@@ -192,8 +192,8 @@ void NewGeom_SalomeViewer::enableSelection(bool isEnabled)
   // there is a fix for a black-colored window 
   // the viewer rubber band is valid if the values delta is less than 1
   // TODO: remove this row after moving to SALOME 7.5
-  mySelector->viewer()->setInteractionStyle(isEnabled ? SUIT_ViewModel::STANDARD
-                                                      : SUIT_ViewModel::KEY_FREE);
+  //mySelector->viewer()->setInteractionStyle(isEnabled ? SUIT_ViewModel::STANDARD
+  //                                                    : SUIT_ViewModel::KEY_FREE);
 }
 
 //**********************************************