summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2004-02-03 06:40:51 +0000
committerCarsten Driesner <cd@openoffice.org>2004-02-03 06:40:51 +0000
commit5271b8d3a41b4bcab1f75b3829fb73b7df83246b (patch)
treedc295a2ec550098cc02a87477d2ef387fb38f33d /framework
parentf4cb522c06c5518c9a5f8ffa2a48d7ca25e27b9e (diff)
#111899# Fixed problem with slots that are state and function at the same time
Diffstat (limited to 'framework')
-rw-r--r--framework/collector/cmduicollector.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/framework/collector/cmduicollector.cxx b/framework/collector/cmduicollector.cxx
index 0c40445580a9..81d0daccdeab 100644
--- a/framework/collector/cmduicollector.cxx
+++ b/framework/collector/cmduicollector.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cmduicollector.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: cd $ $Date: 2004-01-30 15:52:54 $
+ * last change: $Author: cd $ $Date: 2004-02-03 07:40:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -306,6 +306,7 @@ bool ReadCSVFile( const OUString& aCVSFileURL, MODULES eModule, const OUString&
OString aStatusState;
OString aToolbarState;
OString aCmdName;
+ OString aSlotName;
sal_Int32 nIndex = 0;
aID = aLine.getToken( 2, ',', nIndex );
@@ -313,7 +314,11 @@ bool ReadCSVFile( const OUString& aCVSFileURL, MODULES eModule, const OUString&
aMenuState = aLine.getToken( 0, ',', nIndex );
aStatusState = aLine.getToken( 0, ',', nIndex );
aToolbarState = aLine.getToken( 0, ',', nIndex );
- aCmdName = aLine.getToken( 20, ',', nIndex );
+ aCmdName = aLine.getToken( 18, ',', nIndex );
+ aSlotName = aLine.getToken( 1, ',', nIndex );
+
+ if ( aCmdName.getLength() == 0 )
+ aCmdName = aSlotName;
int nID = aID.toInt32();