r17841 by jghali - fix compiler warning

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 28 23:17:49 UTC 2012


Author: jghali
Date: Sun Oct 28 23:17:49 2012
New Revision: 17841

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17841
Log:
fix compiler warning

Modified:
    trunk/Scribus/scribus/plugins/picbrowser/previewimage.cpp

Modified: trunk/Scribus/scribus/plugins/picbrowser/previewimage.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17841&path=/trunk/Scribus/scribus/plugins/picbrowser/previewimage.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/picbrowser/previewimage.cpp (original)
+++ trunk/Scribus/scribus/plugins/picbrowser/previewimage.cpp Sun Oct 28 23:17:49 2012
@@ -268,8 +268,11 @@
 	for ( int i = 0 ; i < previewImagesList.size() ; ++i )
 	{
 		tmpPreviewImage = previewImagesList.at ( i );
-
-		if ( toRemove ( ( resolution < resolution ), smallerThan ) )
+		if (!tmpPreviewImage->imgInfo)
+			continue;
+		int imgResolution = qMin(tmpPreviewImage->imgInfo->xdpi, tmpPreviewImage->imgInfo->ydpi);
+
+		if ( toRemove ( ( imgResolution < resolution ), smallerThan ) )
 		{
 			tmpPreviewImage->filtered = true;
 		}




More information about the scribus-commit mailing list