X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEntityGUI%2FEntityGUI_SketcherDlg.cxx;h=82865e9cf46045e1617ac446c1df0a316e9af70b;hb=b6f0965afb72083a5234f9b4fb0b233adaaf8d9d;hp=c2456fbebde5791cf71557c4b456054c084eb68d;hpb=5dfdaa8e0be0087cc52d1bad3a5464b01c0dee1e;p=modules%2Fgeom.git diff --git a/src/EntityGUI/EntityGUI_SketcherDlg.cxx b/src/EntityGUI/EntityGUI_SketcherDlg.cxx index c2456fbeb..82865e9cf 100644 --- a/src/EntityGUI/EntityGUI_SketcherDlg.cxx +++ b/src/EntityGUI/EntityGUI_SketcherDlg.cxx @@ -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( parent ) ), myIsAllAdded( false ), myIsApply( false ), - GEOMBase_Helper( dynamic_cast( 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();