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

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to