Bugfix for application of exposure controls in blown highlights.

This commit is contained in:
Emil Martinec
2011-04-09 08:22:45 -05:00
parent e972e992ba
commit 04b4745718
6 changed files with 34 additions and 11 deletions

View File

@@ -245,7 +245,7 @@ void CropHandler::setDetailedCrop (IImage8* im, IImage8* imtrue, rtengine::procp
if (ax==cropX && ay==cropY && aw==cropW && ah==cropH && askip==(zoom>=1000?1:zoom)) {
cropimg_width = im->getWidth ();
cropimg_height = im->getHeight ();
cropimg = new unsigned char [6*cropimg_width*cropimg_height];
cropimg = new unsigned char [3*cropimg_width*cropimg_height];
cropimgtrue = new unsigned char [3*cropimg_width*cropimg_height];
memcpy (cropimg, im->getData(), 3*cropimg_width*cropimg_height);
memcpy (cropimgtrue, imtrue->getData(), 3*cropimg_width*cropimg_height);