Here is a *very small and easy patch* (three lines) that fixes a nasty
bug in writer : metafile drawings are not antialiased when anchored as
char. This is a great problem when dealing with Latex equations in text
(see attached file).
The patch has only three lines and is *inoffensive*!
Please review!!!
RB
--
X File Explorer http://roland65.free.fr/xfe
Toutes Choses http://roland65.free.fr/ttc
--- ./git.orig/libo/clone/writer/sw/source/core/doc/notxtfrm.cxx 2011-05-08
12:20:26.000000000 +0200
+++ ./git/libo/clone/writer/sw/source/core/doc/notxtfrm.cxx 2011-05-09 10:48:43.020482547 +0200
@@ -816,6 +816,13 @@
if( pGrfNd )
{
+ // Fix for bug #33781
+ if (pShell->Imp()->GetDrawView()->IsAntiAliasing())
+ {
+ pOut->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW );
+ }
+ // End of fix
+
sal_Bool bForceSwap = sal_False, bContinue = sal_True;
GraphicObject& rGrfObj = pGrfNd->GetGrfObj();
Attachment:
antialiasing-metafile-test.odt
Description: application/vnd.oasis.opendocument.text
Context
- [Libreoffice] [PLEASE REVIEW] Fix for bug 33781 => No anti-aliasing in metafiles when anchor is "as char" · Roland Baudin
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.