View Issue Details

IDProjectCategoryView StatusLast Update
0001365FreeCADBugpublic2014-01-26 22:35
Reporterulrich1a Assigned Toyorik  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformall 
Product Versiontrunk 
Summary0001365: Draft-workbench:Flatsvg export put the drawing content outside of the viewing window making it unusable in the drawing workbench
DescriptionExport a draft or something else as a flatsvg produces an svg, that shows nothing, if loaded in the drawing workbench. Opening the same file in Inkscape makes it visible, that all content is outside of the viewing window.

The fix is simple: line 1182 in importSVG.py hat to be changed from:
svg.write('<g transform="translate('+str(-minx)+','+str(-miny+(2*margin))+') scale(1,-1)">\n')
to:
svg.write('<g transform="translate('+str(-minx)+','+str(maxy)+') scale(1,-1)">\n')
Steps To ReproduceMake something in the draft-workbench.
Export it as flatsvg.
Open the file in the drawing workbench.
Open the file in inkscape.
TagsNo tags attached.
FreeCAD Information

Activities

yorik

2014-01-23 23:50

administrator   ~0004119

Thanks for the fix! I'll test and add it ASAP

Related Changesets

FreeCAD: master c3e8a157

2014-01-26 23:32:35

yorik

Details Diff
Draft: applied ulrich1a's fix to svg output - fixes 0001365 Affected Issues
0001365
mod - src/Mod/Draft/importSVG.py Diff File

Issue History

Date Modified Username Field Change
2014-01-23 21:39 ulrich1a New Issue
2014-01-23 23:49 yorik Assigned To => yorik
2014-01-23 23:49 yorik Status new => assigned
2014-01-23 23:50 yorik Note Added: 0004119
2014-01-26 22:35 yorik Changeset attached => FreeCAD Master master c3e8a157
2014-01-26 22:35 yorik Status assigned => closed
2014-01-26 22:35 yorik Resolution open => fixed