Tag: cws_oof680_dba221a
User: oj      
Date: 2007/04/05 00:02:22

Modified:
   dba/dbaccess/source/filter/xml/xmlExport.cxx

Log:
 #i74119# check if sequence is empty

File Changes:

Directory: /dba/dbaccess/source/filter/xml/
===========================================

File [changed]: xmlExport.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/filter/xml/xmlExport.cxx?r1=1.14&r2=1.14.86.1
Delta lines:  +12 -6
--------------------
--- xmlExport.cxx       17 Sep 2006 06:47:01 -0000      1.14
+++ xmlExport.cxx       5 Apr 2007 07:02:19 -0000       1.14.86.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: xmlExport.cxx,v $
  *
- *  $Revision: 1.14 $
+ *  $Revision: 1.14.86.1 $
  *
- *  last change: $Author: obo $ $Date: 2006/09/17 06:47:01 $
+ *  last change: $Author: oj $ $Date: 2007/04/05 07:02:19 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -1057,9 +1057,15 @@
                sal_Int32 nLength = aProps.getLength();
                try
                {
+                       Any aValue = 
xProp->getPropertyValue(PROPERTY_LAYOUTINFORMATION);
+                       Sequence< PropertyValue > aPropValues;
+                       aValue >>= aPropValues;
+                       if ( aPropValues.getLength() )
+                       {
                        aProps.realloc(nLength + 1);
                        aProps[nLength].Name = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("layout-settings"));
-                       aProps[nLength].Value = 
xProp->getPropertyValue(PROPERTY_LAYOUTINFORMATION);
+                               aProps[nLength].Value = aValue;
+                       }
                }
                catch(Exception)
                {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to