From d7a4a5b26813c94398aa51c3e817e882aba299ba Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 31 Oct 2013 15:26:51 +0200 Subject: The "source size" of a VCL bitmap is not used for anything Thorsten thought it might have been used for to the handling of the "Original Size" functionality originally. That seems slightly broken currently in some use cases, and this change doesn't make it any worse. (To see the brokenness, play with resizing an image, reloading the document, and using "Original Size". With the right sequence of actions, LO seems to think that the "original size" is very small (1x1 pixel perhaps).) Change-Id: I4e0852d2b367def5bc40baf95aac273d59731eec --- vcl/inc/impbmp.hxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'vcl/inc') diff --git a/vcl/inc/impbmp.hxx b/vcl/inc/impbmp.hxx index fa48db174bf8..b29cabe6562a 100644 --- a/vcl/inc/impbmp.hxx +++ b/vcl/inc/impbmp.hxx @@ -43,7 +43,6 @@ private: sal_uLong mnRefCount; sal_uLong mnChecksum; SalBitmap* mpSalBitmap; - Size maSourceSize; public: @@ -63,8 +62,6 @@ public: sal_Bool ImplCreate( const ImpBitmap& rImpBitmap, sal_uInt16 nNewBitCount ); Size ImplGetSize() const; - Size ImplGetSourceSize() const; - void ImplSetSourceSize( const Size&); sal_uInt16 ImplGetBitCount() const; BitmapBuffer* ImplAcquireBuffer( sal_Bool bReadOnly ); @@ -80,16 +77,6 @@ public: inline sal_uLong ImplGetChecksum() const { return mnChecksum; } }; -inline Size ImpBitmap::ImplGetSourceSize() const -{ - return maSourceSize; -} - -inline void ImpBitmap::ImplSetSourceSize( const Size& rSize) -{ - maSourceSize = rSize; -} - #endif // INCLUDED_VCL_INC_IMPBMP_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit