Bug: Creating new whiteboards fails with "Not a diagram file"
arnowelzel opened this issue · 2 comments
arnowelzel commented
When I create a new diagram, the diagram will open with the following error message:
When I confirm that with "OK", I can even draw into the diagram and also click "Save", but it seems not to get saved at all. The file exists but just stays empty.
Maybe this is a side effect of the fix in 8de1b20? Because when I add the following content to the new ".dwb"-file, it works without any problem:
<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>
arnowelzel commented
Ok, it seems for whiteboards the file must not be empty, but for diagrams it must be empty. I'll modified the code in that way, that it will use the default XML content for new whiteboards but not for new diagrams. So far this works OK here. I'll prepare a PR for that.
m-mohamedin commented
Thanks for the fix, please use v2.1.4