r18328 by jghali - #11603: PDF checker : bad warning

scribus-commit scribus-commit at lists.scribus.net
Tue Jun 18 21:33:38 UTC 2013


Author: jghali
Date: Tue Jun 18 21:33:38 2013
New Revision: 18328

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18328
Log:
#11603: PDF checker : bad warning

Modified:
    trunk/Scribus/scribus/documentchecker.cpp

Modified: trunk/Scribus/scribus/documentchecker.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18328&path=/trunk/Scribus/scribus/documentchecker.cpp
==============================================================================
--- trunk/Scribus/scribus/documentchecker.cpp (original)
+++ trunk/Scribus/scribus/documentchecker.cpp Tue Jun 18 21:33:38 2013
@@ -39,10 +39,11 @@
 
 bool isPartFilledImageFrame(PageItem * currItem)
 {
-    //qDebug() << "X" << currItem->width() << currItem->imageXScale() / 72.0 * currItem->pixm.imgInfo.xres * currItem->pixm.width();
-    //qDebug() << "Y" << currItem->height() << currItem->imageYScale() / 72.0 * currItem->pixm.imgInfo.yres * currItem->pixm.height();
-	return (currItem->height() > currItem->imageYScale() / 72.0 * currItem->pixm.imgInfo.yres * currItem->pixm.height()
-			|| currItem->width() > currItem->imageXScale() / 72.0 * currItem->pixm.imgInfo.xres * currItem->pixm.width());
+	double imageRealWidth  = currItem->imageXScale() * currItem->pixm.imgInfo.lowResScale * currItem->pixm.width();
+	double imageRealHeight = currItem->imageYScale() * currItem->pixm.imgInfo.lowResScale * currItem->pixm.height();
+	qDebug() << "X" << currItem->width() << imageRealWidth;
+    qDebug() << "Y" << currItem->height() << imageRealHeight;
+	return ((currItem->width() - imageRealWidth) > 0.05 || (currItem->height() - imageRealHeight) > 0.05);
 }
 
 




More information about the scribus-commit mailing list