[goffice] Fixed initial chart equation style.
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Fixed initial chart equation style.
- Date: Sun, 9 Sep 2012 07:18:58 +0000 (UTC)
commit 5a858511ab84fb4d7c038759c9a50d3643f23ad6
Author: Jean Brefort <jean brefort normalesup org>
Date: Sun Sep 9 09:16:14 2012 +0200
Fixed initial chart equation style.
ChangeLog | 6 ++++++
goffice/graph/gog-equation.c | 4 +---
goffice/utils/go-style.c | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 306de22..3bbf820 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-09-09 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/graph/gog-equation.c (gog_equation_update): fix warning,
+ (gog_equation_init): intialize the lasem document style.
+ * goffice/utils/go-style.c (go_style_persist_prep_sax): cosmetic.
+
2012-09-06 Morten Welinder <terra gnome org>
* configure.in: Post-release bump.
diff --git a/goffice/graph/gog-equation.c b/goffice/graph/gog-equation.c
index 51493fa..9cc7ec2 100644
--- a/goffice/graph/gog-equation.c
+++ b/goffice/graph/gog-equation.c
@@ -159,7 +159,6 @@ gog_equation_update (GogObject *obj)
unsigned int i;
int n_unclosed_braces = 0;
int j;
- gboolean is_blank = TRUE;
gboolean add_dash = FALSE;
if (equation->itex != NULL && !g_utf8_validate (equation->itex, -1, NULL)) {
@@ -175,8 +174,6 @@ gog_equation_update (GogObject *obj)
i < size_utf8;
i++, itex_iter = g_utf8_next_char (itex_iter)) {
if (*itex_iter != ' ') {
- is_blank = FALSE;
-
if (*itex_iter == '{' && (prev_char == NULL || *prev_char != '\\'))
n_unclosed_braces++;
else if (*itex_iter == '}' && (prev_char != NULL || *prev_char != '\\'))
@@ -332,6 +329,7 @@ gog_equation_init (GogEquation *equation)
lsm_dom_node_append_child (equation->math_element, equation->style_element);
lsm_dom_node_append_child (equation->style_element, equation->itex_element);
lsm_dom_node_append_child (equation->itex_element, equation->itex_string);
+ _update_equation_style (equation, go_styled_object_get_style (GO_STYLED_OBJECT (equation)));
}
GSF_CLASS (GogEquation, gog_equation,
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index 438c570..7902494 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -1697,7 +1697,7 @@ go_style_persist_prep_sax (GOPersist *gp, GsfXMLIn *xin, xmlChar const **attrs)
{
static GsfXMLInNode const dtd[] = {
GSF_XML_IN_NODE (STYLE, STYLE,
- -1, "GogObject",
+ -1, "Style",
FALSE, NULL, NULL),
GSF_XML_IN_NODE_FULL (STYLE, STYLE_LINE,
-1, "line",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]