svx/source/tbxctrls/tbcontrl.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
New commits: commit 0175037f98bb27e1b217121539655e561b84fe1e Author: Michael Meeks <michael.me...@suse.com> Date: Tue Feb 21 16:54:13 2012 +0000 WaE: potentially uninitailized nMode diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 5965dd4..d517780 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -2255,14 +2255,15 @@ SvxColorExtToolBoxControl::SvxColorExtToolBoxControl( // The following commands are available at the various modules switch( nSlotId ) { - case SID_ATTR_CHAR_COLOR2 : - case SID_ATTR_CHAR_COLOR : + case SID_ATTR_CHAR_COLOR: + case SID_ATTR_CHAR_COLOR2: addStatusListener( OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharColorExt" ))); nMode = TBX_UPDATER_MODE_CHAR_COLOR_NEW; break; - case SID_ATTR_CHAR_COLOR_BACKGROUND : - case SID_BACKGROUND_COLOR : + case SID_BACKGROUND_COLOR: + case SID_ATTR_CHAR_COLOR_BACKGROUND: + default: addStatusListener( OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharBackgroundExt" ))); nMode = TBX_UPDATER_MODE_CHAR_COLOR_NEW; break; _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits