Kaydet (Commit) 869402a5 authored tarafından Caolán McNamara's avatar Caolán McNamara

Revert "Resolves: #i94895# fix illegal result of Replace runtime function"

This reverts commit 340ca294 as CppunitTest_basic_vba
breaks, so needs revisiting to see which is right

Change-Id: I10168d454a8c67d91eee5bb8939aff74bba42954
üst 1c67621d
......@@ -1405,7 +1405,7 @@ RTLFUNC(Replace)
if( nPos >= 0 )
{
aExpStr = aExpStr.replaceAt( nPos, nFindStrLen, aReplaceStr );
nPos = nPos + nReplaceStrLen;
nPos = nPos - nFindStrLen + nReplaceStrLen + 1;
nCounts++;
}
else
......@@ -1414,7 +1414,7 @@ RTLFUNC(Replace)
}
}
}
rPar.Get(0)->PutString( aExpStr );
rPar.Get(0)->PutString( aExpStr.copy( lStartPos - 1 ) );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment