diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-21 22:00:31 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-22 02:30:36 +1000 |
commit | f749ffbdf4c007f1a42bcafc9c2723c47bac22d1 (patch) | |
tree | 7d6db09d2190265462206ff4416101994822750f /vcl/source/gdi | |
parent | 0d6bc7001d3f4ff9e5118b5425b9f2f8583507ed (diff) |
Move DrawImage function location in outdev.hxx
... also slightly changed the overload documentation for DrawBitmapEx
and DrawBitmap functions.
Furthermore, DrawImage() should never be called from a Printer
instance, so warn and abort.
Change-Id: I0de65a5d7bd8249fcd14d844faf74477d490cef5
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/print.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index bbfc8ebe841f..6fe9b385a025 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -1840,4 +1840,16 @@ void Printer::SetFontOrientation( ImplFontEntry* const pFontEntry ) const pFontEntry->mnOrientation = pFontEntry->maMetric.mnOrientation; } +void Printer::DrawImage( const Point&, const Image&, sal_uInt16 ) +{ + SAL_WARN ("vcl.gdi", "DrawImage(): Images can't be drawn on any Printer instance"); + assert(0); +} + +void Printer::DrawImage( const Point&, const Size&, const Image&, sal_uInt16 ) +{ + SAL_WARN ("vcl.gdi", "DrawImage(): Images can't be drawn on any Printer instance"); + assert(0); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |