summaryrefslogtreecommitdiffstats
path: root/toolkit/source/awt
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-10-11 13:59:41 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-10-11 13:59:41 +0200
commit7fcbcc4b70c1e905e6cdd08ab79ea8ebd0720a5b (patch)
tree4fbe5377aeff23233492e0d2e68845bba7ded7c6 /toolkit/source/awt
parentdba34b: #i112779# moved the new throbber resources from toolkit to VCL (forgo... (diff)
downloadcore-7fcbcc4b70c1e905e6cdd08ab79ea8ebd0720a5b.tar.gz
core-7fcbcc4b70c1e905e6cdd08ab79ea8ebd0720a5b.zip
dba34b: during #i112779#: don't hold an extra BitmapEx in ImageControl, use base classes Image instead
Diffstat (limited to 'toolkit/source/awt')
-rw-r--r--toolkit/source/awt/vclxwindows.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index db34c840f8eb..c69e7c550d90 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -219,7 +219,7 @@ void VCLXGraphicControl::ImplSetNewImage()
{
OSL_PRECOND( GetWindow(), "VCLXGraphicControl::ImplSetNewImage: window is required to be not-NULL!" );
Button* pButton = static_cast< Button* >( GetWindow() );
- pButton->SetModeBitmap( GetBitmap() );
+ pButton->SetModeImage( GetImage() );
}
void VCLXGraphicControl::setPosSize( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, short Flags ) throw(::com::sun::star::uno::RuntimeException)
@@ -660,14 +660,14 @@ void VCLXImageControl::ImplSetNewImage()
{
OSL_PRECOND( GetWindow(), "VCLXImageControl::ImplSetNewImage: window is required to be not-NULL!" );
ImageControl* pControl = static_cast< ImageControl* >( GetWindow() );
- pControl->SetBitmap( GetBitmap() );
+ pControl->SetImage( GetImage() );
}
::com::sun::star::awt::Size VCLXImageControl::getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException)
{
::vos::OGuard aGuard( GetMutex() );
- Size aSz = GetBitmap().GetSizePixel();
+ Size aSz = GetImage().GetSizePixel();
aSz = ImplCalcWindowSize( aSz );
return AWTSize(aSz);