[Libreoffice-commits] .: vcl/inc vcl/source

Radek Doulík rodo at kemper.freedesktop.org
Wed Feb 9 07:07:20 PST 2011


 vcl/inc/vcl/gdimtf.hxx    |    1 +
 vcl/source/gdi/gdimtf.cxx |    2 ++
 2 files changed, 3 insertions(+)

New commits:
commit 7de8695f19626c764a4b43cfb30179525d9a5956
Author: Radek Doulik <rodo at novell.com>
Date:   Wed Feb 9 16:02:42 2011 +0100

    GDIMetaFile::bUseCanvas related changes (prerequisite for fixing n#650049)
    
     - add GetUseCanvas() for read access
     - update bUseCanvas when playing on metafile

diff --git a/vcl/inc/vcl/gdimtf.hxx b/vcl/inc/vcl/gdimtf.hxx
index 14cc127..4bf3d46 100644
--- a/vcl/inc/vcl/gdimtf.hxx
+++ b/vcl/inc/vcl/gdimtf.hxx
@@ -247,6 +247,7 @@ public:
     BOOL           CreateThumbnail( sal_uInt32 nMaximumExtent, BitmapEx& rBmpEx, const BitmapEx* pOverlay = NULL, const Rectangle* pOverlayRect = NULL ) const;
 
     void           UseCanvas( BOOL _bUseCanvas );
+    BOOL           GetUseCanvas() const { return bUseCanvas; }
 };
 
 /** Create a special metaaction that delegates rendering to specified
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 75ff2f8..faf0d02 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -437,6 +437,8 @@ void GDIMetaFile::Play( GDIMetaFile& rMtf, ULONG nPos )
         MetaAction* pAction = GetCurAction();
         const ULONG nObjCount = Count();
 
+        rMtf.UseCanvas( rMtf.GetUseCanvas() | bUseCanvas );
+
         if( nPos > nObjCount )
             nPos = nObjCount;
 


More information about the Libreoffice-commits mailing list