Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


Hi,

The Bug is filed and accepted at: https://bugs.freedesktop.org/show_bug.cgi?id=75243

Steps to reproduce:
1. Open Writer and use a document .doc
2. Add it a custom property. Don't enter any value for the property
3. Save it and close Writer
4. Open again Writer and use same document recently saved.
5. Custom property is lost.

Attached is a patch that solves the problem. Patch is also attached to the bug.
Please consider this patch for inclusion.

I declare that this and my further patches are under LGPLv3+ / MPL license.

With Regards, 


Tarun Kumar
TOGAF®, CSM®, PMP®, PRINCE2®, ITILV3®

--- oleprops.hxx        2014-01-14 15:00:18.000000000 +0530
+++ oleprops_copy.hxx   2014-02-20 10:57:54.286704766 +0530
@@ -310,7 +310,7 @@
     void                SetBoolValue( sal_Int32 nPropId, bool bValue );
     /** Inserts a string property with the passed value.
         @return  true = Property inserted; false = String was empty, property not inserted. */
-    bool                SetStringValue( sal_Int32 nPropId, const OUString& rValue, bool bSkipEmpty 
= true );
+    bool                SetStringValue( sal_Int32 nPropId, const OUString& rValue, bool bSkipEmpty 
= false );
     /** Inserts a time stamp property with the passed value. */
     void                SetFileTimeValue( sal_Int32 nPropId, const 
::com::sun::star::util::DateTime& rValue );
     /** Inserts a date property with the passed value. */

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.