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,
{
icon.icon.data[1] = save_indir (&indir, valid, 0) - start;
}
else
{
icon.icon.data[1] = -1;
}
break;
......
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