Buffer underrun in RGB denoise, Issue 2337. Could also fix 'Crash when creating detail window, Issue 2324' (Thanks to Hombre)

This commit is contained in:
Ingo
2014-04-09 23:59:26 +02:00
parent 51e80b8c03
commit 832c8b6c25
4 changed files with 11 additions and 3 deletions

View File

@@ -93,6 +93,7 @@ void ImageArea::on_resized (Gtk::Allocation& req) {
mainCropWindow->setPointerMotionHListener (pmhlistener);
mainCropWindow->setPosition (0, 0);
mainCropWindow->setSize (get_width(), get_height(), false); // this execute the refresh itself
mainCropWindow->enable(); // start processing !
}
else {
mainCropWindow->setSize (get_width(), get_height());
@@ -386,6 +387,9 @@ void ImageArea::addCropWindow () {
cw->setPosition (lastClosedX, lastClosedY);
lastClosedX = -1;
}
cw->enable(); // start processing!
int x0,y0,w,h,wc,hc;
mainCropWindow->getCropRectangle(x0,y0,w,h );
cw->getCropSize(wc,hc);