From: <hug...@li...> - 2011-09-15 16:57:28
|
branch: 2011.2 details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgrepo/h/hu/hugin/hugin/rev/73afaffab3fe changeset: 5561:73afaffab3fe user: tmodes date: Sun Aug 21 18:24:37 2011 +0200 description: Fixes issue, that image becomes white in mask tab [823823] diffstat: src/hugin1/hugin/MaskImageCtrl.cpp | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diffs (16 lines): diff -r 4c6d3257ebba -r 73afaffab3fe src/hugin1/hugin/MaskImageCtrl.cpp --- a/src/hugin1/hugin/MaskImageCtrl.cpp Sat Aug 20 09:16:59 2011 +0200 +++ b/src/hugin1/hugin/MaskImageCtrl.cpp Sun Aug 21 18:24:37 2011 +0200 @@ -884,6 +884,12 @@ imageSize.SetWidth(scale(imageSize.GetWidth())); imageSize.SetHeight(scale(imageSize.GetHeight())); img=img.Scale(scale(m_realSize.GetWidth()), scale(m_realSize.GetHeight())); + } + else + { + //the conversion to disabled bitmap would work on the original cached image file + //therefore we need to create a copy to work on it + img=img.Copy(); }; //and now rotating switch(m_imgRotation) |