diff options
-rw-r--r-- | framework/source/recording/dispatchrecorder.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx index 202be3676801..c9856f6447d6 100644 --- a/framework/source/recording/dispatchrecorder.cxx +++ b/framework/source/recording/dispatchrecorder.cxx @@ -357,14 +357,12 @@ void SAL_CALL DispatchRecorder::implts_recordMacro( const ::rtl::OUString& aURL, continue; { - ++nValidArgs; - // add arg().Name if(bAsComment) aArgumentBuffer.appendAscii(REM_AS_COMMENT); aArgumentBuffer.append (sArrayName); aArgumentBuffer.appendAscii("("); - aArgumentBuffer.append (i); + aArgumentBuffer.append (nValidArgs); aArgumentBuffer.appendAscii(").Name = \""); aArgumentBuffer.append (lArguments[i].Name); aArgumentBuffer.appendAscii("\"\n"); @@ -374,10 +372,12 @@ void SAL_CALL DispatchRecorder::implts_recordMacro( const ::rtl::OUString& aURL, aArgumentBuffer.appendAscii(REM_AS_COMMENT); aArgumentBuffer.append (sArrayName); aArgumentBuffer.appendAscii("("); - aArgumentBuffer.append (i); + aArgumentBuffer.append (nValidArgs); aArgumentBuffer.appendAscii(").Value = "); aArgumentBuffer.append (sValBuffer.makeStringAndClear()); aArgumentBuffer.appendAscii("\n"); + + ++nValidArgs; } } |