Salome HOME
Copyright update 2022
[modules/geom.git] / src / EntityGUI / EntityGUI_SketcherDlg.cxx
index c2456fbebde5791cf71557c4b456054c084eb68d..82865e9cf46045e1617ac446c1df0a316e9af70b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -83,9 +83,9 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg( GeometryGUI* GUI, QWidget* parent,
                                               bool modal, Qt::WindowFlags fl,
                                               const double lineWidth )
   : QDialog( parent, fl ),
+    GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
     myIsAllAdded( false ),
     myIsApply( false ),
-    GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
     myGeometryGUI( GUI ),
     myLineWidth( lineWidth )
 {
@@ -1873,7 +1873,7 @@ void EntityGUI_SketcherDlg::ValueChangedInSpinBox( double newValue )
         LastDecimal = aPrecision;
       else                    // 'g' format in the QString
         LastDecimal = qAbs( aPrecision ) - ceil( log10(minRad) );
-        minRad = ceil(pow(10,LastDecimal) * minRad) / pow(10,LastDecimal); // Rounded up at the last allowed decimal place
+      minRad = ceil(pow(10,LastDecimal) * minRad) / pow(10,LastDecimal); // Rounded up at the last allowed decimal place
       if ( Abs(vz) < minRad){
         if (vz < 0.0)
           Group3Spin->SpinBox_DZ->setValue( - minRad );
@@ -2492,8 +2492,8 @@ void EntityGUI_SketcherDlg::displayPreview( GEOM::GEOM_Object_ptr object,
                                             const bool            activate,
                                             const bool            update,
                                             const double          lineWidth,
-                                            const int             displayMode,
-                                            const int             color )
+                                            const int             /*displayMode*/,
+                                            const int             /*color*/ )
 {
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();