[lasem] mathml:itex: don't force measure on update if not needed.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] mathml:itex: don't force measure on update if not needed.
- Date: Wed, 26 Sep 2012 12:01:32 +0000 (UTC)
commit e9e7d75fa236343aa7bf3d0aca5e8c272b31233d
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Sep 26 14:00:53 2012 +0200
mathml:itex: don't force measure on update if not needed.
src/lsmmathmlitexelement.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/lsmmathmlitexelement.c b/src/lsmmathmlitexelement.c
index 7d696e3..43466f9 100644
--- a/src/lsmmathmlitexelement.c
+++ b/src/lsmmathmlitexelement.c
@@ -52,11 +52,6 @@ _update (LsmMathmlElement *self, LsmMathmlStyle *style)
GString *string;
gboolean need_conversion;
- if (itex_element->math != NULL) {
- lsm_dom_node_changed (LSM_DOM_NODE (itex_element->math));
- LSM_MATHML_ELEMENT (itex_element->math)->need_measure = TRUE;
- }
-
if (style->display == LSM_MATHML_DISPLAY_INLINE)
string = g_string_new ("$");
else
@@ -97,10 +92,10 @@ _update (LsmMathmlElement *self, LsmMathmlStyle *style)
g_string_free (string, FALSE);
- if (itex_element->math != NULL)
- lsm_mathml_element_update (itex_element->math, style);
-
- self->need_measure = TRUE;
+ if (itex_element->math != NULL) {
+ lsm_dom_node_changed (LSM_DOM_NODE (itex_element->math));
+ self->need_measure = lsm_mathml_element_update (itex_element->math, style);
+ }
}
static const LsmMathmlBbox *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]