[gtk+/parser] themingengine: Set current point to 0, 0 when rendering rotated layout



commit 203d5369b1bab27576eede5a87710118c928f614
Author: Benjamin Otte <otte redhat com>
Date:   Thu May 12 23:27:51 2011 +0200

    themingengine: Set current point to 0,0 when rendering rotated layout
    
    Otherwise the layout may move to who-knows-where

 gtk/gtkthemingengine.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 74d2d90..491b9bf 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -2419,6 +2419,7 @@ gtk_theming_engine_render_layout (GtkThemingEngine *engine,
       cairo_matrix.y0 += y - rect.y;
 
       cairo_set_matrix (cr, &cairo_matrix);
+      cairo_move_to (cr, 0, 0);
     }
   else
     cairo_move_to (cr, x, y);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]