diff options
| author | Alvin Penner <penner@vaxxine.com> | 2015-10-31 12:30:05 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2015-10-31 12:30:05 +0000 |
| commit | 53d5e152527c05fd1f7dd14e83a15ec7d3a3d61c (patch) | |
| tree | 90373109bb30a50eb0a0a47fc1e8722e82b6d6d9 | |
| parent | static code analysis (diff) | |
| download | inkscape-53d5e152527c05fd1f7dd14e83a15ec7d3a3d61c.tar.gz inkscape-53d5e152527c05fd1f7dd14e83a15ec7d3a3d61c.zip | |
extensions. dxf input. do not use zero font size (Bug 1510909)
Fixed bugs:
- https://launchpad.net/bugs/1510909
(bzr r14437)
| -rwxr-xr-x | share/extensions/dxf_input.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/extensions/dxf_input.py b/share/extensions/dxf_input.py index 362f35be9..acfed0921 100755 --- a/share/extensions/dxf_input.py +++ b/share/extensions/dxf_input.py @@ -35,7 +35,7 @@ def export_MTEXT(): y = vals[groups['20']][0] # optional group codes : (21, 40, 50) (direction, text height mm, text angle) size = 12 # default fontsize in px - if vals[groups['40']]: + if vals[groups['40']] and vals[groups['40']][0]: size = scale*vals[groups['40']][0] attribs = {'x': '%f' % x, 'y': '%f' % y, 'style': 'font-size: %.1fpx; fill: %s; font-family: %s' % (size, color, options.font)} angle = 0 # default angle in degrees |
