2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Oct 2006 00:33:47 +0000 (00:33 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Oct 2006 00:33:47 +0000 (00:33 +0000)
        Reviewed by Darin and Oliver.

        Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.

        * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
        (WebCore::GraphicsContext::drawConvexPolygon):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16900 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/qt/GraphicsContextQt.cpp

index 8f8b84befb2e468927b1182a6532813f8af204a6..56c1acdf70ba736e919d858b2ae25c2a8e02d947 100644 (file)
@@ -1,3 +1,12 @@
+2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Reviewed by Darin and Oliver.
+
+        Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
+
+        * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
+        (WebCore::GraphicsContext::drawConvexPolygon):
+
 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Darin.
index adfbe1f6a2c96a2d6c6ea7d1b27a2294216c9fc7..59387201384df9a7e0908447f47e5b0eb3dcadfe 100644 (file)
@@ -431,7 +431,7 @@ void GraphicsContext::drawConvexPolygon(size_t npoints, const FloatPoint* points
     QPolygonF polygon(npoints);
 
     for (size_t i = 0; i < npoints; i++)
-        polygon << points[i];
+        polygon[i] = points[i];
 
     m_data->p().save();
     m_data->p().setRenderHint(QPainter::Antialiasing, shouldAntialias);