File libQtWebKit.diff of Package libqt4

--- 3rdparty/webkit/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
+++ 3rdparty/webkit/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
@@ -516,11 +516,11 @@
         // Do a rect fill of our endpoints.  This ensures we always have the
         // appearance of being a border.  We then draw the actual dotted/dashed line.
         if (isVerticalLine) {
-            p->fillRect(FloatRect(p1.x() - width / 2, p1.y() - width, width, width), color);
-            p->fillRect(FloatRect(p2.x() - width / 2, p2.y(), width, width), color);
+            fillRect(FloatRect(p1.x() - width / 2, p1.y() - width, width, width), color);
+            fillRect(FloatRect(p2.x() - width / 2, p2.y(), width, width), color);
         } else {
-            p->fillRect(FloatRect(p1.x() - width, p1.y() - width / 2, width, width), color);
-            p->fillRect(FloatRect(p2.x(), p2.y() - width / 2, width, width), color);
+            fillRect(FloatRect(p1.x() - width, p1.y() - width / 2, width, width), color);
+            fillRect(FloatRect(p2.x(), p2.y() - width / 2, width, width), color);
         }
 
         // Example: 80 pixels with a width of 30 pixels.
openSUSE Build Service is sponsored by