]> git.donarmstrong.com Git - xournal.git/commitdiff
fix saving issue for text boxes of length > 4095
authorauroux <auroux>
Fri, 23 Apr 2010 15:25:42 +0000 (15:25 +0000)
committerauroux <auroux>
Fri, 23 Apr 2010 15:25:42 +0000 (15:25 +0000)
ChangeLog
src/xo-file.c

index 42197f99dce95807d368e150f2fbd355ee6afb6a..412afed7c90cbf21dc040d33fc890f0e3dce56af 100644 (file)
--- 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
index 2743a28c1db5c743226583c273ebd3e2624bacdf..fd797110d5e550dd29ca69ea9762fcdc432fb52e 100644 (file)
@@ -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</text>\n", tmpstr);
+          gzputs(f, "\">");
+          gzputs(f, tmpstr); // gzprintf() can't handle > 4095 bytes
+          gzputs(f, "</text>\n");
           g_free(tmpstr);
         }
       }