EMF on open line widths affected by "scale stroke width" button
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
David Mathog |
Bug Description
r13276, linux
(first noted in bug #1303443)
When the test file "10pxline.emf" (attached) is opened the resulting diagram scales line widths in two ways, depending on the value of the "scale stroke width". (Yes, I know the example line is not exactly 10px).
set: line width is 9.975px (CORRECT)
clear: line width is 9.975mm (WRONG)
All emf-inout.cpp does when reading an EMF file is construct an SVG file in d.outsvg, which it then sends on with:
// std::cout << "SVG Output: " << std::endl << *(d.outsvg) << std::endl;
SPDocument *doc = SPDocument:
Uncomment that debug line and one finds that d.outsvg is IDENTICAL in the two cases (one instance saved to 10pxonly.svg, which will be the next attachment). When that svg is read in the result does NOT depend on the value of the "scale stroke width" button. Note that the sole style in 10pxonly.svg specifies:
which would seem to be unambiguous. There are also no transforms in that file.
In bug #1303443 Alvin Penner noted that:
<group
stroke="0"
pattern="1"
gradient="1" />
however the SVG does not contain any <group>.
Changed in inkscape: | |
assignee: | nobody → David Mathog (mathog) |
milestone: | none → 0.91 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Not surprisingly, wmf-inout.cpp does exactly the same thing. (Example not shown.)