Commit 32770c2a authored by Jeffrey Lee's avatar Jeffrey Lee Committed by ROOL
Browse files

Fix templates being corrupted on save

Make sure that icons with zero-length validation strings are saved with
a string offset of -1.

Now I can add an icon to a window, and save it. Amazing!
parent 202618df
......@@ -3375,6 +3375,10 @@ error * template_save_to_memory (DocumentPtr doc, ResourcePtr res, char *buffer,
{[1] = save_indir (&indir, valid, 0) - start;
{[1] = -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment