summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-04-19 19:34:07 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-04-19 19:44:33 +1000
commit2d786ef2961002893d532a7d2087055857e51c17 (patch)
tree741e54300a9d768c5353dd25daf498a0685622b4 /include
parentfa801a69a2660a15bffe409f422364c011c7534f (diff)
Refactor OutputDevice::DrawImage()
There is a fair amount of code duplication going on here. If no valid Size is passed to the function then we should pass on Size(), then in the function we call we should check to see if there is a valid size. In fact, this is something we should probably check for anyway, so if anything this makes the code slightly more robust. Change-Id: If7b55e5505ada6739375c69b123cf1e34a0fa66d
Diffstat (limited to 'include')
-rw-r--r--include/vcl/outdev.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index d0bd887ada50..7507d08a9b60 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -1146,9 +1146,9 @@ public:
const Bitmap& rBitmap, const Color& rMaskColor,
sal_uLong nAction );
- void DrawImage( const Point& rPos,
+ virtual void DrawImage( const Point& rPos,
const Image& rImage, sal_uInt16 nStyle = 0 );
- void DrawImage( const Point& rPos, const Size& rSize,
+ virtual void DrawImage( const Point& rPos, const Size& rSize,
const Image& rImage, sal_uInt16 nStyle = 0 );
#ifdef _MSC_VER