//------------------------------------------------------------------------------
void vvToolCropImage::closeEvent(QCloseEvent *event)
{
- // Reset extends
- for(int i=0; i<mExtentSize; i++) mReducedExtent[i] = mInitialExtent[i];
if(mCurrentSlicerManager){
- UpdateExtent();
+ // Reset extends
+ for(int i=0; i<mExtentSize; i++) mReducedExtent[i] = mInitialExtent[i];
+ UpdateExtent();
}
event->accept();
}
{
xmaxSlider->setMinimum(xminSlider->value());
mReducedExtent[0] = xminSlider->value();
+ std::cout<<"new value "<<mReducedExtent[0]<<std::endl;
UpdateExtent();
}
//------------------------------------------------------------------------------