r22531 by jghali - #15282: Suspicious assignment in PSD image loader
scribus-commit
scribus-commit at lists.scribus.net
Wed May 9 10:46:15 UTC 2018
Author: jghali
Date: Wed May 9 10:46:15 2018
New Revision: 22531
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22531
Log:
#15282: Suspicious assignment in PSD image loader
Modified:
trunk/Scribus/scribus/imagedataloaders/scimgdataloader_psd.cpp
Modified: trunk/Scribus/scribus/imagedataloaders/scimgdataloader_psd.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22531&path=/trunk/Scribus/scribus/imagedataloaders/scimgdataloader_psd.cpp
==============================================================================
--- trunk/Scribus/scribus/imagedataloaders/scimgdataloader_psd.cpp (original)
+++ trunk/Scribus/scribus/imagedataloaders/scimgdataloader_psd.cpp Wed May 9 10:46:15 2018
@@ -966,9 +966,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