X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_ManagerContour_NDimensions%2FwxInstantChooserPanel.cxx;h=4e14484d72f53506ff2cc54958fa80fd9b588946;hb=a00c5fd269140ac09f0a7a9b36a97bb040f62f86;hp=8f5894efe9e02fc06585099e3d84410ba7a86420;hpb=74b501a27c4c1a94330cdc79677b850f0777209b;p=creaContours.git diff --git a/lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx b/lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx index 8f5894e..4e14484 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx @@ -135,6 +135,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE ) int min = _lastConceptUpdated->getMinValue(); int max = _lastConceptUpdated->getMaxValue(); int delta = (int) (pow((double) 2,(double) _resolutionSlider->GetValue() )); + int minTmp = value - delta/2; int maxTmp = value + delta/2; if (minTmp