r22533 by jghali - #15283: Redundant assignment in TIFF image loader

scribus-commit scribus-commit at lists.scribus.net
Wed May 9 10:48:47 UTC 2018


Author: jghali
Date: Wed May  9 10:48:47 2018
New Revision: 22533

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22533
Log:
#15283: Redundant assignment in TIFF image loader

Modified:
    trunk/Scribus/scribus/imagedataloaders/scimgdataloader_tiff.cpp

Modified: trunk/Scribus/scribus/imagedataloaders/scimgdataloader_tiff.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22533&path=/trunk/Scribus/scribus/imagedataloaders/scimgdataloader_tiff.cpp
==============================================================================
--- trunk/Scribus/scribus/imagedataloaders/scimgdataloader_tiff.cpp	(original)
+++ trunk/Scribus/scribus/imagedataloaders/scimgdataloader_tiff.cpp	Wed May  9 10:48:47 2018
@@ -1441,9 +1441,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