[Libreoffice-bugs] [Bug 141982] [EMF] SetWorldTransform/ModifyWorldTransform support for non-0 m12/m21
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Apr 30 14:10:50 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=141982
--- Comment #11 from Xisco Faulí <xiscofauli at libreoffice.org> ---
(In reply to Bartosz from comment #9)
> @Xisco Are you sure the regression was introduced by this commit?
>
> Could you please attach screenshots of EMF files imported by LibreOffice 4.1?
In fact, this change
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -639,8 +639,8 @@ namespace emfio
double fWidth, fHeight;
if (bDoWorldTransform)
{
- fWidth = rSz.Width() * maXForm.eM11 + rSz.Height() *
maXForm.eM21;
- fHeight = rSz.Width() * maXForm.eM12 + rSz.Height() *
maXForm.eM22;
+ fWidth = rSz.Width() * maXForm.eM11;
+ fHeight = rSz.Width() * maXForm.eM12;
}
makes it to be displayed as a square again
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210430/a3369320/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list