diff options
author | Oliver Düsterhoff <od@openoffice.org> | 2009-12-11 10:56:15 +0000 |
---|---|---|
committer | Oliver Düsterhoff <od@openoffice.org> | 2009-12-11 10:56:15 +0000 |
commit | e6b80eaae11007424df8181bef34cb5c127e7096 (patch) | |
tree | 46fa1f501f47d29b3a995bd01486a97adb8fb01b /xmloff | |
parent | 875ac20478f16e5107acb222c0b851b99d2e0f27 (diff) |
#i107610# method <XMLTextImportHelper::SetOutlineStyles(..)>
- correction of fix for issue 106218 to assure that paragraph style which
are already applied to the outline style stay assigned.
Diffstat (limited to 'xmloff')
-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 cad922d48fdd..9368095c2da3 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 ) ); + } } // <-- } |