diff options
author | Yong Sun <yong.sun@sun.com> | 2005-02-04 12:39:35 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-02-04 12:39:35 +0800 |
commit | c1082913af125f3ccf0428fb730c85c2ff3c08ef (patch) | |
tree | 721f4a17eda76f953843c23c5e118c365801d1da | |
parent | f0d49c3e044bca5eafb11af522f65a3eaea8bb4e (diff) | |
download | gsoc2013-evolution-c1082913af125f3ccf0428fb730c85c2ff3c08ef.tar.gz gsoc2013-evolution-c1082913af125f3ccf0428fb730c85c2ff3c08ef.tar.zst gsoc2013-evolution-c1082913af125f3ccf0428fb730c85c2ff3c08ef.zip |
Fix for #56901
2005-02-04 Yong Sun <yong.sun@sun.com>
Fix for #56901
* gui/print.c: (bound_text): When the width>maxwidth, the
pointer 'p' should also be backwarded, same as 'o'.
svn path=/trunk/; revision=28700
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/print.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d29a510ecf..758494861a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2005-02-04 Yong Sun <yong.sun@sun.com> + + Fix for #56901 + + * gui/print.c: (bound_text): When the width>maxwidth, the + pointer 'p' should also be backwarded, same as 'o'. + 2005-02-03 Rodney Dawes <dobey@novell.com> * calendar-errors.xml.h: Update to include new strings from the diff --git a/calendar/gui/print.c b/calendar/gui/print.c index 0a219d07f3..9991f2e7cc 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -741,6 +741,7 @@ bound_text(GnomePrintContext *pc, GnomeFont *font, const char *text, width+=gnome_font_get_glyph_width(font, gnome_font_lookup_default (font, c)); if (width>maxwidth) { o--; + p--; dump=1; } } @@ -768,9 +769,8 @@ bound_text(GnomePrintContext *pc, GnomeFont *font, const char *text, maxwidth -= indent; first=0; } - } else { - p++; } + p++; } if (dump==0) { *o=0; |