From 68c1522759a7771964699c6c4679ec9cbc3ec9ec Mon Sep 17 00:00:00 2001
From: Sascha Ballach <sab@openoffice.org>
Date: Fri, 6 Apr 2001 10:06:15 +0000
Subject: #82953#; only write the next style name if there is a name

---
 xmloff/source/style/XMLPageExport.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'xmloff/source/style/XMLPageExport.cxx')

diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx
index 3d1b7f4fe85b..a8db7bee3c85 100644
--- a/xmloff/source/style/XMLPageExport.cxx
+++ b/xmloff/source/style/XMLPageExport.cxx
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: XMLPageExport.cxx,v $
  *
- *  $Revision: 1.7 $
+ *  $Revision: 1.8 $
  *
- *  last change: $Author: mib $ $Date: 2000-11-07 13:33:06 $
+ *  last change: $Author: sab $ $Date: 2001-04-06 11:06:15 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -202,7 +202,7 @@ sal_Bool XMLPageExport::exportStyle(
         aAny = xPropSet->getPropertyValue( sFollowStyle );
         OUString sNextName;
         aAny >>= sNextName;
-        if( sName != sNextName )
+        if( sName != sNextName && sNextName.getLength() )
         {
             GetExport().AddAttribute( XML_NAMESPACE_STYLE, sXML_next_style_name,
                           sNextName );
-- 
cgit