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 | 7fbe1af0e10e5ffe6a6dceab49bf7d44056ebc84 (patch) | |
tree | 9bef8de4367390669c628cc317d2ded6691eda4d | |
parent | 13ca2c1bc1d2f9584a6f7a4b8e12a445e9b42f7b (diff) | |
parent | 857eddc807fb510fafe93f230dc68ade85727a77 (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 ea18c31a01..f47aa1016d 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 ) ); + } } // <-- } |