Code

lower limit on linewidth
authoralvinpenner <alvinpenner@users.sourceforge.net>
Fri, 19 Dec 2008 23:45:45 +0000 (23:45 +0000)
committeralvinpenner <alvinpenner@users.sourceforge.net>
Fri, 19 Dec 2008 23:45:45 +0000 (23:45 +0000)
share/extensions/dxf_input.py

index 7e7a78da9950dd9660968c84c4b378a2c8481dbf..6c759ba8f4416820bfc01d7bbc2b8b5e876de3a2 100644 (file)
@@ -235,6 +235,8 @@ while line[0] and line[1] != 'ENDSEC':
             if vals[groups['370']]:                 # Common Lineweight\r
                 if vals[groups['370']][0] > 0:\r
                     w = scale*vals[groups['370']][0]/100.0\r
+                    if w < 0.5:\r
+                        w = 0.5\r
                     style = simplestyle.formatStyle({'stroke': '%s' % color, 'fill': 'none', 'stroke-width': '%.1f' % w})\r
             entities[entity]()\r
         entity = line[1]\r