summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/filter/oox/worksheethelper.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx
index 14a021af27dd..0f01e0d777b2 100644
--- a/sc/source/filter/oox/worksheethelper.cxx
+++ b/sc/source/filter/oox/worksheethelper.cxx
@@ -1248,8 +1248,7 @@ void WorksheetGlobals::convertOutlines( OutlineLevelVec& orLevels,
if( nSize < nLevel )
{
// Outline level increased. Push the begin column position.
- for( sal_Int32 nIndex = nSize; nIndex < nLevel; ++nIndex )
- orLevels.push_back( nColRow );
+ orLevels.insert(orLevels.end(), nLevel - nSize, nColRow);
}
else if( nLevel < nSize )
{