diff options
author | Vladimir Glazunov <vg@openoffice.org> | 2009-12-15 13:07:40 +0100 |
---|---|---|
committer | Vladimir Glazunov <vg@openoffice.org> | 2009-12-15 13:07:40 +0100 |
commit | 6ea88eded86186220c1bfb874e3e329ecd7ef695 (patch) | |
tree | 2dd0bb36530d229fa16da7a3479ad35bf84d0bc0 | |
parent | f81d8c1e611682d979b36bca0b58d7686453b8df (diff) | |
parent | e6b80eaae11007424df8181bef34cb5c127e7096 (diff) |
CWS-TOOLING: integrate CWS sw32bf09_DEV300
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 7ff2043c0a2a..7817fa7c4c19 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -1661,8 +1661,14 @@ void XMLTextImportHelper::SetOutlineStyles( sal_Bool bSetEmptyLevels ) pProps->Name = sHeadingStyleName; for ( sal_Int32 i = 0; i < nCount; ++i ) { - pProps->Value <<= sChosenStyles[i]; - xChapterNumbering->replaceByIndex( i, makeAny( aProps ) ); + // --> OD 2009-12-11 #i107610# + if ( bSetEmptyLevels || + sChosenStyles[i].getLength() > 0 ) + // <-- + { + pProps->Value <<= sChosenStyles[i]; + xChapterNumbering->replaceByIndex( i, makeAny( aProps ) ); + } } // <-- } |