Commits

Vladimir Glazunov  committed 3ece0bf Merge

CWS-TOOLING: integrate CWS sw32bf09_DEV300

  • Participants
  • Parent commits c547a14, 891ace3

Comments (0)

Files changed (1)

File xmloff/source/text/txtimp.cxx

         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 ) );
+            }
         }
         // <--
     }