diff options
author | Radek Doulik <rodo@novell.com> | 2011-02-15 17:26:00 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-02-15 17:26:00 +0100 |
commit | 930183694d4bdbf100b0549a9d7312c2ef107ae2 (patch) | |
tree | 9e60f23b41c81f6f2e70f78954270eb5a1b20b4e /vcl | |
parent | 0a4424d3cbfbe874c2c74851f04dc9731f67e932 (diff) |
GDIMetaFile::bUseCanvas related changes (prerequisite for fixing n#650049)
- add GetUseCanvas() for read access
- update bUseCanvas when playing on metafile
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/gdimtf.hxx | 1 | ||||
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/vcl/gdimtf.hxx b/vcl/inc/vcl/gdimtf.hxx index 9e40829a26f6..63ecaad720b9 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 ce7aa4764d76..655b3ec2fe8a 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; |