[goffice] fix sense of at_end test in attribute adjustment of scientific format
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] fix sense of at_end test in attribute adjustment of scientific format
- Date: Mon, 24 Oct 2011 07:07:08 +0000 (UTC)
commit db8a3355bf1f6b1017681a2f6c088f51a6985e31
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Mon Oct 24 01:06:20 2011 -0600
fix sense of at_end test in attribute adjustment of scientific format
2011-10-24 Andreas J. Guelzow <aguelzow pyrshep ca>
* goffice/utils/go-format.c (go_format_execute): fix sense of
at_end test
ChangeLog | 5 +++++
goffice/utils/go-format.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 817714a..357f1d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-24 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * goffice/utils/go-format.c (go_format_execute): fix sense of
+ at_end test
+
2011-10-22 Andreas J. Guelzow <aguelzow pyrshep ca>
* goffice/utils/go-format.c (go_format_execute): consider the
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index 1938188..c7c5dd3 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -3482,12 +3482,12 @@ SUFFIX(go_format_execute) (PangoLayout *layout, GString *dst,
if (attrs != NULL) {
PangoAttrIterator *iter = pango_attr_list_get_iterator (attrs);
gint range_start, range_end;
- gboolean at_end = FALSE;
+ gboolean not_at_end = TRUE;
pango_attr_iterator_range (iter, &range_start, &range_end);
while (range_end <= (int) start &&
- (at_end = pango_attr_iterator_next (iter)))
+ (not_at_end = pango_attr_iterator_next (iter)))
pango_attr_iterator_range (iter, &range_start, &range_end);
- if (!at_end && range_start <= (int) start) {
+ if (not_at_end && range_start <= (int) start) {
PangoAttribute *pa;
PangoFontDescription *desc = pango_font_description_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]