]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed [ wxwindows-Bugs-1556877 ] Draw arcs are showed like a pie
authorRobert Roebling <robert@roebling.de>
Tue, 19 Sep 2006 17:56:27 +0000 (17:56 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 19 Sep 2006 17:56:27 +0000 (17:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcclient.cpp

index 4c47974d553c53069df1c4f6b93c4d358eb42cab..da9628c012d12d2282aac687d2554acd47e02683 100644 (file)
@@ -582,8 +582,11 @@ void wxWindowDC::DoDrawArc( wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2,
         {
             gdk_draw_arc( m_window, m_penGC, FALSE, xxc-r, yyc-r, 2*r,2*r, alpha1, alpha2 );
 
-            gdk_draw_line( m_window, m_penGC, xx1, yy1, xxc, yyc );
-            gdk_draw_line( m_window, m_penGC, xxc, yyc, xx2, yy2 );
+            if ((m_brush.GetStyle() != wxTRANSPARENT) && (alpha2 - alpha1 != 360*64))
+            {
+                gdk_draw_line( m_window, m_penGC, xx1, yy1, xxc, yyc );
+                gdk_draw_line( m_window, m_penGC, xxc, yyc, xx2, yy2 );
+            }
         }
     }