]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx
Changes with manualBaseModel. It improves the functionality with the new
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxInstantChooserPanel.cxx
index 4e14484d72f53506ff2cc54958fa80fd9b588946..ea1cfeaf9a1180866d618e6e63f90d2c61e33758 100644 (file)
@@ -134,8 +134,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                int value = _lastConceptUpdated->getActualValue();
                int min = _lastConceptUpdated->getMinValue();
                int max = _lastConceptUpdated->getMaxValue();
-               int delta = (int) (pow((double) 2,(double) _resolutionSlider->GetValue() ));
-
+               int delta = (int) (pow( 2, _resolutionSlider->GetValue() ));
                int minTmp   = value - delta/2;
                int maxTmp   = value + delta/2;
                if (minTmp<min)
@@ -389,7 +388,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                int value = theConceptToUpdate->getActualValue();
                int min = theConceptToUpdate->getMinValue();
                int max = theConceptToUpdate->getMaxValue();
-               int delta = (int) (pow( (double)2, (double)_resolutionSlider->GetValue() ));
+               int delta = (int) (pow( 2, _resolutionSlider->GetValue() ));
                int minTmp   = value - delta/2;
                int maxTmp   = value + delta/2;
                if (minTmp<min)