Kaydet (Commit) 09a015e6 authored tarafından Matteo Casalin's avatar Matteo Casalin

Slight simplification of loop

Change-Id: I8eccb85962c07933d0bc5771067d3c533933e90b
üst bdace7b2
......@@ -2946,15 +2946,13 @@ XubString SwTxtNode::GetExpandTxt( const xub_StrLen nIdx,
}
}
if ( bWithSpacesForLevel && GetActualListLevel() > 0 )
if (bWithSpacesForLevel)
{
int nLevel( GetActualListLevel() );
while ( nLevel > 0 )
const sal_Unicode aSpace = ' ';
for (int nLevel = GetActualListLevel(); nLevel > 0; --nLevel)
{
const sal_Unicode aSpace = ' ';
aTxt.Insert( aSpace , 0 );
aTxt.Insert( aSpace , 0 );
--nLevel;
}
}
......
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