From: auroux Date: Fri, 23 Apr 2010 15:25:42 +0000 (+0000) Subject: fix saving issue for text boxes of length > 4095 X-Git-Url: https://git.donarmstrong.com/?p=xournal.git;a=commitdiff_plain;h=4c464d0043d2e3c586f442d52e7dd5ebd13ebd95 fix saving issue for text boxes of length > 4095 --- diff --git a/ChangeLog b/ChangeLog index 42197f9..412afed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ This version: - fix hand tool bug when exiting canvas (#2905711) - Italian translation (Marco Poletti), German translation (Stefan Lembach) - Spanish translation (Alvaro) + - fix save bug with text boxes containing > 4095 characters Version 0.4.5 (Oct 2, 2009): - bugfixes for GTK+ 2.16/2.17 issues with xinput events diff --git a/src/xo-file.c b/src/xo-file.c index 2743a28..fd79711 100644 --- a/src/xo-file.c +++ b/src/xo-file.c @@ -199,7 +199,9 @@ gboolean save_journal(const char *filename) else gzprintf(f, "#%08x", item->brush.color_rgba); tmpstr = g_markup_escape_text(item->text, -1); - gzprintf(f, "\">%s\n", tmpstr); + gzputs(f, "\">"); + gzputs(f, tmpstr); // gzprintf() can't handle > 4095 bytes + gzputs(f, "\n"); g_free(tmpstr); } }