From 7b3b70a7629dee72ffdccbe491e27cc09da3986c Mon Sep 17 00:00:00 2001 From: Peter TB Brett Date: Mon, 17 Dec 2012 16:50:06 +0000 Subject: [PATCH] libgedacairo: Fix unbalanced overbar rendering. eda_pango_parse_overbars() was not generating a PangoAttribute for unbalanced overbars. Although finding a "\0" would trigger the creation of a PangoAttribute, the terminating "\0" of a string wasn't being included in the overbar parsing loop. Closes-bug: lp-1091314 --- libgedacairo/edapangorenderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgedacairo/edapangorenderer.c b/libgedacairo/edapangorenderer.c index dbca196f5..a5f273b3e 100644 --- a/libgedacairo/edapangorenderer.c +++ b/libgedacairo/edapangorenderer.c @@ -396,7 +396,7 @@ eda_pango_parse_overbars (const gchar *overbar_text, int length, out_ptr = *text; for (in_ptr = overbar_text; - (in_ptr - overbar_text) < length; + (in_ptr - overbar_text) <= length; /* Include \0 at end */ in_ptr++) { /* If we find an escape character and we are not already in an -- 2.11.4.GIT