[gegl] text: get rid of a text-alignment hack



commit f51ff3af2d78803e0c219dd86ff4154e32a3233b
Author: Ell <ell_se yahoo com>
Date:   Tue Nov 22 09:47:07 2016 -0500

    text: get rid of a text-alignment hack
    
    It doesn't seem to be needed anymore, and does the wrong thing.

 operations/external/text.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/operations/external/text.c b/operations/external/text.c
index 4339016..d155d45 100644
--- a/operations/external/text.c
+++ b/operations/external/text.c
@@ -159,16 +159,6 @@ static void text_layout_text (GeglOp *self,
     }
   else
     {
-      /* FIXME: This feels like a hack but it stops the rendered text  */
-      /* from shifting position depending on the value of 'alignment'. */
-      if (o->alignment == 1)
-         cairo_move_to (cr, o->width / 2, 0);
-      else
-        {
-          if (o->alignment == 2)
-             cairo_move_to (cr, o->width, 0);
-        }
-
       pango_cairo_show_layout (cr, layout);
     }
 


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