diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-23 21:11:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-24 13:04:38 +0100 |
commit | 602274c77fa8134ca097f4d60b9fb75cea0eff78 (patch) | |
tree | 97f52c76c3ccde45692c1579737a1b25ffdd4d36 /vcl | |
parent | 6f660293885733e64602aa6144c36ed7e7b43faf (diff) |
no ImageButton loaded from .src now
Change-Id: If6f6718e1e6d756b99a499deafa4310c76a75ad3
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/button.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index ebbe3c9bb31e..2ca40135e7ee 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -3777,26 +3777,6 @@ ImageButton::ImageButton( vcl::Window* pParent, WinBits nStyle ) : ImplInitStyle(); } -ImageButton::ImageButton( vcl::Window* pParent, const ResId& rResId ) : - PushButton( pParent, rResId.SetRT( RSC_IMAGEBUTTON ) ) -{ - RscImageButtonFlags nObjMask = (RscImageButtonFlags)ReadLongRes(); - - if ( RscImageButtonFlags::Image & nObjMask ) - { - SetModeImage( Image( ResId( static_cast<RSHEADER_TYPE*>(GetClassRes()), *rResId.GetResMgr() ) ) ); - IncrementRes( GetObjSizeRes( static_cast<RSHEADER_TYPE*>(GetClassRes()) ) ); - } - - if ( RscImageButtonFlags::Symbol & nObjMask ) - SetSymbol( (SymbolType)ReadLongRes() ); - - if ( RscImageButtonFlags::State & nObjMask ) - SetState( (TriState)ReadLongRes() ); - - ImplInitStyle(); -} - void ImageButton::ImplInitStyle() { WinBits nStyle = GetStyle(); |