Fix assertion in pango_gravity_get_rotation().
authorBehdad Esfahbod <behdad@gnome.org>
Thu, 6 Dec 2007 01:40:35 +0000 (01:40 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Thu, 6 Dec 2007 01:40:35 +0000 (01:40 +0000)
2007-12-05  Behdad Esfahbod  <behdad@gnome.org>

        * pango-view/viewer-pangocairo.c (render_callback): Fix assertion
        in pango_gravity_get_rotation().

svn path=/trunk/; revision=2515

ChangeLog
pango-view/viewer-pangocairo.c

index 7e5af9b..e29e182 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-05  Behdad Esfahbod  <behdad@gnome.org>
+
+       * pango-view/viewer-pangocairo.c (render_callback): Fix assertion
+       in pango_gravity_get_rotation().
+
 2007-12-04  Behdad Esfahbod  <behdad@gnome.org>
 
        Bug 501575 – Compile errors
index fc06ccf..3171453 100644 (file)
@@ -163,7 +163,7 @@ render_callback (PangoLayout *layout,
       cairo_translate   (cr,  1.0,  1.0);
       cairo_rotate (cr,
        pango_gravity_to_rotation (
-         pango_context_get_base_gravity (
+         pango_context_get_gravity (
            pango_layout_get_context (layout))));
       cairo_move_to     (cr, -1.0, -1.0);
       cairo_rel_line_to (cr, +1.0, -0.2); /* /   */