]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
corrected ::Clear
[wxWidgets.git] / src / gtk / dcclient.cpp
index eea9ffd7c3ae2cffa6d3f3098f90aea01c379e1e..1af194354971c4b45749cd0dba0588ad57f13983 100644 (file)
@@ -331,6 +331,7 @@ wxWindowDC::wxWindowDC( wxWindow *window )
 
 #ifdef __WXGTK20__
     m_context = gtk_widget_get_pango_context( widget );
+    
     m_fontdesc = widget->style->font_desc;
 #endif
 
@@ -1556,7 +1557,7 @@ void wxWindowDC::DoDrawRotatedText( const wxString &text, wxCoord x, wxCoord y,
                 // don't use DrawPoint() because it uses the current pen
                 // colour, and we don't need it here
                 gdk_draw_point( m_window, m_textGC,
-                                XLOG2DEV(x + dstX), YLOG2DEV(y + dstY) );
+                                XLOG2DEV(x) + dstX, YLOG2DEV(y) + dstY );
             }
         }
     }