[goffice] Style: fix last fix.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Style: fix last fix.
- Date: Mon, 16 Feb 2015 23:39:41 +0000 (UTC)
commit 4a49f77dddc80193d7970271107ee0605a4f5ef2
Author: Morten Welinder <terra gnome org>
Date: Mon Feb 16 18:38:58 2015 -0500
Style: fix last fix.
We were copying too much when applying font theming.
goffice/utils/go-style.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index ce96e68..d4a5a9b 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -257,7 +257,7 @@ cb_outline_color_changed (GOSelector *selector,
g_return_if_fail (style != NULL);
style->line.color = go_color_selector_get_color (selector,
- &style->line.auto_color);
+ &style->line.auto_color);
set_style (state);
}
@@ -913,7 +913,7 @@ cb_font_color_changed (GOSelector *selector,
GOStyle *style = state->style;
style->font.color = go_color_selector_get_color (selector, NULL);
- style->font.auto_color = style->font.color == state->default_style->font.color;
+ style->font.auto_color = (style->font.color == state->default_style->font.color);
set_style (state);
}
@@ -1287,7 +1287,7 @@ go_style_apply_theme (GOStyle *dst, GOStyle const *src, GOStyleFlag fields)
go_font_ref (src->font.font);
if (dst->font.font != NULL)
go_font_unref (dst->font.font);
- dst->font = src->font;
+ dst->font.font = src->font.font;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]