Title: [124324] trunk/Tools
Revision
124324
Author
[email protected]
Date
2012-08-01 04:41:28 -0700 (Wed, 01 Aug 2012)

Log Message

[Qt] ImageDiff should use float division instead of integer
https://bugs.webkit.org/show_bug.cgi?id=92859

Reviewed by Zoltan Herczeg.

* DumpRenderTree/qt/ImageDiff.cpp:
(main):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (124323 => 124324)


--- trunk/Tools/ChangeLog	2012-08-01 11:41:04 UTC (rev 124323)
+++ trunk/Tools/ChangeLog	2012-08-01 11:41:28 UTC (rev 124324)
@@ -1,3 +1,13 @@
+2012-08-01  Csaba Osztrogonác  <[email protected]>
+
+        [Qt] ImageDiff should use float division instead of integer
+        https://bugs.webkit.org/show_bug.cgi?id=92859
+
+        Reviewed by Zoltan Herczeg.
+
+        * DumpRenderTree/qt/ImageDiff.cpp:
+        (main):
+
 2012-08-01  Sheriff Bot  <[email protected]>
 
         Unreviewed, rolling out r124313.

Modified: trunk/Tools/DumpRenderTree/qt/ImageDiff.cpp (124323 => 124324)


--- trunk/Tools/DumpRenderTree/qt/ImageDiff.cpp	2012-08-01 11:41:04 UTC (rev 124323)
+++ trunk/Tools/DumpRenderTree/qt/ImageDiff.cpp	2012-08-01 11:41:28 UTC (rev 124324)
@@ -119,7 +119,7 @@
                 if (difference <= tolerance) {
                     difference = 0;
                 } else {
-                    difference = qRound(difference * 100) / 100;
+                    difference = qRound(difference * 100) / 100.0f;
                     difference = qMax(difference, qreal(0.01));
                 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to