summaryrefslogtreecommitdiffstats
path: root/reportdesign/source/ui/dlg/Condition.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-10 12:32:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-10 13:23:35 +0100
commit0dc13e9c06bf5bc188b427f0760d0dc2eee8f75e (patch)
tree23f77494de34696b5bf593d985519bf0ecd261fe /reportdesign/source/ui/dlg/Condition.cxx
parentcoverity#1187810 Uncaught exception (diff)
downloadcore-0dc13e9c06bf5bc188b427f0760d0dc2eee8f75e.tar.gz
core-0dc13e9c06bf5bc188b427f0760d0dc2eee8f75e.zip
tweak things to allow switching between small and large toolbar icons
Change-Id: Ife4da4c6f4acc3b3f9fde18cdfc09635cf9b6776
Diffstat (limited to 'reportdesign/source/ui/dlg/Condition.cxx')
-rw-r--r--reportdesign/source/ui/dlg/Condition.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx
index 3d22579bdd14..d41009d02d3a 100644
--- a/reportdesign/source/ui/dlg/Condition.cxx
+++ b/reportdesign/source/ui/dlg/Condition.cxx
@@ -365,7 +365,6 @@ IMPL_LINK( Condition, OnConditionAction, Button*, _pClickedButton )
return 0L;
}
-
void Condition::ApplyCommand( sal_uInt16 _nCommandId, const ::Color& _rColor)
{
if ( _nCommandId == SID_ATTR_CHAR_COLOR2 )
@@ -376,12 +375,12 @@ void Condition::ApplyCommand( sal_uInt16 _nCommandId, const ::Color& _rColor)
m_rAction.applyCommand( m_nCondIndex, _nCommandId, _rColor );
}
-ImageList Condition::getImageList(sal_Int16 _eBitmapSet) const
+void Condition::setImageList(sal_Int16 _eBitmapSet)
{
sal_Int16 nN = IMG_CONDFORMAT_DLG_SC;
if ( _eBitmapSet == SFX_SYMBOLS_SIZE_LARGE )
nN = IMG_CONDFORMAT_DLG_LC;
- return ImageList(ModuleRes(nN));
+ m_aActions.SetImageList(ImageList(ModuleRes(nN)));
}
void Condition::resizeControls(const Size& _rDiff)