Comment 5 for bug 1472429

Revision history for this message
Alvin Penner (apenner) wrote :

 Attached is a modified version of a dxf file which contains the desired layer name and loads correctly into Inkscape. The original file contained a layer name called 'text' which had been declared but not used, so I renamed it to be 's001-#def-active-grp', which fixes the problem temporarily.
 The 'normal' usage for a layer name is that it will be declared once in the 'TABLE' section of the dxf file. In this declaration it will be associated with other attributes like default color for example. Then the same layer name may be used multiple times in the 'ENTITIES' section where it will be associated with specific objects. The Inkscape dxf import code, unfortunately, was written in such a way that the original declaration in the TABLE section is mandatory and the program will crash if it does not exist. The file 'Rectangle.dxf' does not follow this convention, therefore it crashes.
 I'll take a look at the code to see if this condition can be relaxed. or at the very least, perhaps a more user-friendly warning can be issued. It has been some years since I looked at this, so it may take a week or so to come up with a proposal.