Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Preferences_SelectionDlg.cxx
index 1f041af2ec2236783f749fd3fff8a0e52303e45c..087739f47522937266ae15f295097613da2cc26b 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SMESH
 //  $Header$
 
-using namespace std;
 #include "SMESHGUI_Preferences_SelectionDlg.h"
 #include "SMESHGUI.h"
 
@@ -40,6 +39,8 @@ using namespace std;
 #include <qpalette.h>
 #include <qcolordialog.h>
 
+using namespace std;
+
 //=================================================================================
 // class    : SMESHGUI_LineEdit
 // purpose  : 
@@ -303,5 +304,6 @@ void SMESHGUI_Preferences_SelectionDlg::SetPrecision(int type, double value)
 double SMESHGUI_Preferences_SelectionDlg::GetPrecision(int type)
 {
   if (type > 0 && type <= 2)
-  return myPrecision[type-1]->text().toDouble();
+    return myPrecision[type-1]->text().toDouble();
+  return 0;
 }