[gnumeric] gnm_style_dup: handle pango attributes better.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] gnm_style_dup: handle pango attributes better.
- Date: Tue, 9 Jun 2009 09:10:08 -0400 (EDT)
commit 542a1e49838cd1bcd58e6f569db10d4e4eec574b
Author: Morten Welinder <terra gnome org>
Date: Tue Jun 9 09:05:41 2009 -0400
gnm_style_dup: handle pango attributes better.
---
ChangeLog | 4 ++++
src/mstyle.c | 6 +++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 402aeab..159e5fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-09 Morten Welinder <terra gnome org>
+
+ * src/mstyle.c (gnm_style_dup): Copy pango_attrs_zoom too.
+
2009-06-09 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/print-info.c (gnm_page_breaks_get_next_break): new
diff --git a/src/mstyle.c b/src/mstyle.c
index 476d58f..8afd8db 100644
--- a/src/mstyle.c
+++ b/src/mstyle.c
@@ -577,8 +577,12 @@ gnm_style_dup (GnmStyle const *src)
elem_set (new_style, i);
elem_changed (new_style, i);
}
- if ((new_style->pango_attrs = src->pango_attrs))
+
+ if ((new_style->pango_attrs = src->pango_attrs)) {
pango_attr_list_ref (new_style->pango_attrs);
+ new_style->pango_attrs_zoom = src->pango_attrs_zoom;
+ }
+
if ((new_style->font = src->font)) {
gnm_font_ref (new_style->font);
new_style->font_zoom = src->font_zoom;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]