X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_ManagerContour_NDimensions%2FwxInstantChooserPanel.cxx;h=43af5d9acefa8fffb82e99a0993c5956dee42007;hb=2ddb9de651984bea4376da16a35e2f02a78a76c0;hp=ea1cfeaf9a1180866d618e6e63f90d2c61e33758;hpb=03596c3a81a960624efaadc28a4cfc52d831ec98;p=creaContours.git diff --git a/lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx b/lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx index ea1cfea..43af5d9 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx @@ -134,7 +134,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE ) int value = _lastConceptUpdated->getActualValue(); int min = _lastConceptUpdated->getMinValue(); int max = _lastConceptUpdated->getMaxValue(); - int delta = (int) (pow( 2, _resolutionSlider->GetValue() )); + int delta = (int) (pow( 2.0, _resolutionSlider->GetValue() )); int minTmp = value - delta/2; int maxTmp = value + delta/2; if (minTmpgetActualValue(); int min = theConceptToUpdate->getMinValue(); int max = theConceptToUpdate->getMaxValue(); - int delta = (int) (pow( 2, _resolutionSlider->GetValue() )); + int delta = (int) (pow( 2.0, _resolutionSlider->GetValue() )); int minTmp = value - delta/2; int maxTmp = value + delta/2; if (minTmp