[gnumeric] fix zoom of super and subcsripts in edit item



commit b9e70307615403909f17f85ad65873c3df79d015
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Thu Oct 27 19:57:39 2011 -0600

    fix zoom of super and subcsripts in edit item
    
    2011-10-27 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/item-edit.c (item_edit_update_bounds): translate sub/superscript
    	attributes

 ChangeLog       |    5 +++++
 src/item-edit.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 560176d..8adec06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-10-27 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* src/item-edit.c (item_edit_update_bounds): translate sub/superscript
+	attributes
+
+2011-10-27 Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* src/mstyle.c (gnm_style_get_pango_attrs): add args to call of
 	go_pango_attr_*_new
 	* src/wbc-gtk-actions.c (toggle_font_attr): use subscript/superscript
diff --git a/src/item-edit.c b/src/item-edit.c
index 750e772..5a3d881 100644
--- a/src/item-edit.c
+++ b/src/item-edit.c
@@ -405,6 +405,8 @@ item_edit_update_bounds (GocItem *item)
 		pango_layout_set_attributes (ie->layout, attrs);
 		pango_attr_list_unref (attrs);
 
+		go_pango_translate_layout (ie->layout);
+
 		if (pane->preedit_length) {
 			PangoAttrList *tmp_attrs = pango_attr_list_new ();
 			pango_attr_list_splice (tmp_attrs, pane->preedit_attrs,



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