Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi,

here is a small patch for sw that fixes another issue related to bug 33781 that I already fixed last month.

The problem is that a graphic object of type "Draw 8" is not anti-aliased when anchored as char (see test file for example).

IMHO, this patch is safe and acts exactly the same as the previous fix for bug 33781.

Should be nice if it could be commited to the 3-4 branch and / or 3-4-1 branch.

Have a nice day,
RB



--
X File Explorer http://roland65.free.fr/xfe
Toutes Choses http://roland65.free.fr/ttc
From 978bebea673217065e157b94368a9c70097843ee Mon Sep 17 00:00:00 2001
From: Roland Baudin <roland65@free.fr>
Date: Fri, 17 Jun 2011 19:39:55 +0000
Subject: [PATCH] Additional fix for bug fdo#33781

---
 sw/source/core/doc/notxtfrm.cxx |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 520de0c..41023eb 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -947,6 +947,12 @@ void SwNoTxtFrm::PaintPicture( OutputDevice* pOut, const SwRect &rGrfArea ) 
cons
     }
     else if( pOLENd )
     {
+        // Fix for bug fdo#33781
+        if (pShell->Imp()->GetDrawView()->IsAntiAliasing())
+        {
+            pOut->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW );
+        }
+
         // #i99665#
         // Adjust AntiAliasing mode at output device for chart OLE
         const sal_uInt16 nFormerAntialiasingAtOutput( pOut->GetAntialiasing() );
-- 
1.7.5.4

Attachment: test.odt
Description: application/vnd.oasis.opendocument.text


Context


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.