summaryrefslogtreecommitdiff
path: root/framework/source/uielement
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-01-29 13:51:39 +0000
committerRüdiger Timm <rt@openoffice.org>2007-01-29 13:51:39 +0000
commit95f5ee4384b4e82df8f064bedc7a90021ab3d929 (patch)
tree998941171bb6b12cffa265ba3f33d3034557258d /framework/source/uielement
parent123892389e4f5f073ec65689350ae450745f77a9 (diff)
INTEGRATION: CWS fwk60 (1.4.74); FILE MERGED
2007/01/15 16:13:04 cd 1.4.74.1: #i73486# Support documented command 'SetImage'. To be downward compatible we also support old/wrong command name
Diffstat (limited to 'framework/source/uielement')
-rw-r--r--framework/source/uielement/imagebuttontoolbarcontroller.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/framework/source/uielement/imagebuttontoolbarcontroller.cxx b/framework/source/uielement/imagebuttontoolbarcontroller.cxx
index ea25966eac7e..f672b6365f8c 100644
--- a/framework/source/uielement/imagebuttontoolbarcontroller.cxx
+++ b/framework/source/uielement/imagebuttontoolbarcontroller.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: imagebuttontoolbarcontroller.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 14:20:51 $
+ * last change: $Author: rt $ $Date: 2007-01-29 14:51:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -205,7 +205,9 @@ throw ( RuntimeException )
void ImageButtonToolbarController::executeControlCommand( const ::com::sun::star::frame::ControlCommand& rControlCommand )
{
vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() );
- if ( rControlCommand.Command.equalsAsciiL( "SetImage", 7 ))
+ // i73486 to be downward compatible use old and "wrong" also!
+ if (( rControlCommand.Command.equalsAsciiL( "SetImag", 7 )) ||
+ ( rControlCommand.Command.equalsAsciiL( "SetImage", 8 )) )
{
for ( sal_Int32 i = 0; i < rControlCommand.Arguments.getLength(); i++ )
{