r18983 by fschmid - Show the image resolution warning sign only when the image frame is at least twice the size of the sign.

scribus-commit scribus-commit at lists.scribus.net
Thu Apr 3 10:24:34 UTC 2014


Author: fschmid
Date: Thu Apr  3 10:24:34 2014
New Revision: 18983

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18983
Log:
Show the image resolution warning sign only when the image frame is at least twice the size of the sign.

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18983&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Thu Apr  3 10:24:34 2014
@@ -2076,11 +2076,14 @@
 			{
 				double ofx = m_width - 22.0;
 				double ofy = m_height - 22.0;
-				p->save();
-				p->translate(ofx, ofy);
-				QImage ico = loadIcon("22/dialog-warning.png").toImage();
-				p->drawImage(&ico);
-				p->restore();
+				if ((m_width > 40) && (m_height > 40))
+				{
+					p->save();
+					p->translate(ofx, ofy);
+					QImage ico = loadIcon("22/dialog-warning.png").toImage();
+					p->drawImage(&ico);
+					p->restore();
+				}
 			}
 		}
 		if ((m_Doc->guidesPrefs().layerMarkersShown) && (m_Doc->layerCount() > 1) && (!m_Doc->layerOutline(LayerID)) && (isGroup()) && (!m_Doc->drawAsPreview))




More information about the scribus-commit mailing list