diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-11-04 14:43:40 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-11-04 14:43:40 +0000 |
commit | ec2ce8edaa81aa94afcfcaabd9af6f2ab7181095 (patch) | |
tree | 0ddd9741bc34c5498b805b0acf9f16d2b435e01f /framework | |
parent | e575cfb5f5b2276ebd6b06a347ff6a1a420e55d8 (diff) |
INTEGRATION: CWS fwk25 (1.18.500); FILE MERGED
2005/10/17 10:15:34 mba 1.18.500.1: #i54702#: wrong array index used in case of invalid parameters
Diffstat (limited to 'framework')
-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; } } |