r22532 by jghali - #15283: Redundant assignment in TIFF image loader
scribus-commit
scribus-commit at lists.scribus.net
Wed May 9 10:48:27 UTC 2018
Author: jghali
Date: Wed May 9 10:48:27 2018
New Revision: 22532
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22532
Log:
#15283: Redundant assignment in TIFF image loader
Modified:
branches/Version14x/Scribus/scribus/scimgdataloader_tiff.cpp
Modified: branches/Version14x/Scribus/scribus/scimgdataloader_tiff.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22532&path=/branches/Version14x/Scribus/scribus/scimgdataloader_tiff.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scimgdataloader_tiff.cpp (original)
+++ branches/Version14x/Scribus/scribus/scimgdataloader_tiff.cpp Wed May 9 10:48:27 2018
@@ -1411,9 +1411,7 @@
}
else
layerInfo[layer].thumb_mask = QImage();
- if ((m_imageInfoRecord.isRequest) && (m_imageInfoRecord.RequestProps.contains(layer)))
- m_imageInfoRecord.RequestProps[layer].useMask = m_imageInfoRecord.RequestProps[layer].useMask;
- else
+ if (!m_imageInfoRecord.isRequest || !m_imageInfoRecord.RequestProps.contains(layer))
m_imageInfoRecord.RequestProps[layer].useMask = true;
bool visible = !(layerInfo[layer].flags & 2);
if ((m_imageInfoRecord.isRequest) && (m_imageInfoRecord.RequestProps.contains(layer)))
More information about the scribus-commit
mailing list