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

CID#1078685 consider if there is < 3 %

Change-Id: I2807a16548af4202d42448c6ef66f240ab4cc920
üst dcee4cfc
...@@ -492,14 +492,16 @@ bool SvBaseLink::ExecuteEdit( const OUString& _rNewName ) ...@@ -492,14 +492,16 @@ bool SvBaseLink::ExecuteEdit( const OUString& _rNewName )
{ {
sError = sError.replaceAt( nFndPos, 1, sApp ); sError = sError.replaceAt( nFndPos, 1, sApp );
nFndPos = nFndPos + sApp.getLength(); nFndPos = nFndPos + sApp.getLength();
if( -1 != ( nFndPos = sError.indexOf( '%', nFndPos )))
{
sError = sError.replaceAt( nFndPos, 1, sTopic );
nFndPos = nFndPos + sTopic.getLength();
if( -1 != ( nFndPos = sError.indexOf( '%', nFndPos )))
sError = sError.replaceAt( nFndPos, 1, sItem );
}
} }
if( -1 != ( nFndPos = sError.indexOf( '%', nFndPos )))
{
sError = sError.replaceAt( nFndPos, 1, sTopic );
nFndPos = nFndPos + sTopic.getLength();
}
if( -1 != ( nFndPos = sError.indexOf( '%', nFndPos )))
sError = sError.replaceAt( nFndPos, 1, sItem );
} }
else else
return false; return false;
......
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