diff options
| author | mathog <> | 2014-09-04 20:50:55 +0000 |
|---|---|---|
| committer | mathog <> | 2014-09-04 20:50:55 +0000 |
| commit | 018c346b862ccd7dafcbf0e35b757735446821f7 (patch) | |
| tree | bc96ed429cbae33ad28b22d33b96c1fc2cdaec8f /src/extension/internal/wmf-inout.cpp | |
| parent | Remove more whiteboard related leftovers. (diff) | |
| download | inkscape-018c346b862ccd7dafcbf0e35b757735446821f7.tar.gz inkscape-018c346b862ccd7dafcbf0e35b757735446821f7.zip | |
resolves bug 1348417 and implements addition features for bug 1302857
(bzr r13544)
Diffstat (limited to 'src/extension/internal/wmf-inout.cpp')
| -rw-r--r-- | src/extension/internal/wmf-inout.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/extension/internal/wmf-inout.cpp b/src/extension/internal/wmf-inout.cpp index 5ccad678a..44d73ee8d 100644 --- a/src/extension/internal/wmf-inout.cpp +++ b/src/extension/internal/wmf-inout.cpp @@ -3062,6 +3062,8 @@ Wmf::open( Inkscape::Extension::Input * /*mod*/, const gchar *uri ) return NULL; } + d.dc[0].font_name = strdup("Arial"); // Default font, set only on lowest level, it copies up from there WMF spec says device can pick whatever it wants + // set up the size default for patterns in defs. This might not be referenced if there are no patterns defined in the drawing. d.defs += "\n"; @@ -3104,7 +3106,7 @@ Wmf::open( Inkscape::Extension::Input * /*mod*/, const gchar *uri ) d.dc[0].style.stroke_dasharray.values.clear(); - for(int i=0; i<=d.level;i++){ + for(int i=0; i<=WMF_MAX_DC; i++){ if(d.dc[i].font_name)free(d.dc[i].font_name); } |
