Created attachment 74589 [details]
Visio 2010 vdx file
When loading a Visio (2010) drawing the Cisco stencils does not get shown correctly
When opening the drawing some stencils are missing
All Stenciels should show up.
Operating System: Ubuntu
Version: 184.108.40.206.alpha0+ Master
Clarify language of title:
"Libvisio: Cisco stenciels donest get shown correctly" -> "Libvisio: Cisco stencils are not displayed properly"
On pc Debian x86-64 with master sources updated today, on the 5 stencils, only 2 display.
Fridrich: one for you?
Created attachment 75057 [details]
Well-known Cisco's "router" icon in EMF format.
Fridrich, 3 of 5 shapes are using stencils. All stencils are 'ForeignShape' with wrapped EMF. 2 other shapes are unreferenced EMF files.
Half filled shape (2nd from the left) is EMF incorrectly handled by LO.
I extracted it, see attached file.
The emf files are extracted by libvisio just fine, only that LO emf+ renderer does not render them right :(
Comment on attachment 74589 [details]
Visio 2010 vdx file
this appears to be a better mime-type... at least according to http://support.microsoft.com/kb/310331/de
ah nice my fix for bug 59405 lets the attached EMF show up...
the EMF attachment is fixed by bf8450cfa2e9e899c716fbddadd7d5485aefe520,
which simply writes the comments into the file; no idea if that
is a good idea in general though.
there are still 2 emtpy boxes in the Visio file.
looks good in current 4.0 branch and master 80885bf2 but again
broken in current master: the second and third images now
don't have a white background (as in Visio2010) but a black one.
... aha ... git bisect says:
Author: Muthu Subramanian <email@example.com>
Date: Thu Apr 25 11:57:59 2013 +0530
n#812793: (Workaround) Transparent background import in EMF+.
EMF+ seems to have alpha of 0xff for transparent background!
Looks like I put the workaround in FillPolygons rather than FillRects.
Nevertheless, it is still a workaround, please do let me know if it breaks any other document as well.
[PS: I still haven't been able to figure out what makes MS consider as transparent during the background fill - while what is stored in the image is actually white :( ]
Muthu Subramanian committed a patch related to this issue.
It has been pushed to "master":
fdo#60638: Workaround should be in FillRects rather than FillPolygon.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
marking this as fixed, so that somebody can verify.