[goffice] Fix persistence of chart line width.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Fix persistence of chart line width.
- Date: Fri, 25 Jul 2014 16:19:11 +0000 (UTC)
commit c5013bba5595d82af6d1309bbafbd8518a7d8fc1
Author: Jean Brefort <jean brefort normalesup org>
Date: Fri Jul 25 18:18:36 2014 +0200
Fix persistence of chart line width.
ChangeLog | 5 +++++
goffice/utils/go-style.c | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8eb470b..7fd81cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-25 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/utils/go-style.c (cb_outline_size_changed),
+ (cb_line_size_changed): fixed persistence of line width.
+
2014-07-20 Jean Brefort <jean brefort normalesup org>
* goffice/graph/gog-axis.c (gog_axis_init): center ticks by default.
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index 3c1b1e6..0cf300b 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -244,6 +244,7 @@ cb_outline_size_changed (GtkAdjustment *adj, StylePrefState *state)
g_return_if_fail (style != NULL);
style->line.width = go_rint (gtk_adjustment_get_value (adj) * 100.) / 100.;
+ style->line.auto_width = style->line.width == state->default_style->line.width;
set_style (state);
}
@@ -320,6 +321,7 @@ cb_line_size_changed (GtkAdjustment *adj, StylePrefState const *state)
g_return_if_fail (style != NULL);
style->line.width = go_rint (gtk_adjustment_get_value (adj) * 100.) / 100.;
+ style->line.auto_width = style->line.width == state->default_style->line.width;
set_style (state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]