Sychronization of crop image processing; see issue #549

This commit is contained in:
Oliver Duis
2011-03-01 19:32:58 +01:00
parent daee8cae5f
commit 89a2232c2e
4 changed files with 64 additions and 124 deletions

View File

@@ -92,9 +92,8 @@ CropWindow::CropWindow (ImageArea* parent, rtengine::StagedImageProcessor* ipc_)
minWidth = bsw + iw + 2*sideBorderWidth;
setSize (100, 100);
cropHandler.newImage (ipc_);
cropHandler.setPosition (0,0);
cropHandler.setEnabled (true);
cropHandler.setCropHandlerListener (this);
@@ -195,6 +194,7 @@ void CropWindow::setSize (int w, int h, bool norefresh) {
if (!norefresh)
cropHandler.setWSize (imgAreaW, imgAreaH);
iarea->redraw ();
}
@@ -746,7 +746,6 @@ double CropWindow::getZoom () {
}
void CropWindow::setZoom (double zoom) {
int cz = MAXZOOMSTEPS;
if (zoom < zoomSteps[0].zoom)
cz = 0;