https://bz.apache.org/ooo/show_bug.cgi?id=128625

          Issue ID: 128625
        Issue Type: DEFECT
           Summary: importing .sxc (pre-ODF StarOffice XML file format)
                    corrupts formulas
           Product: Calc
           Version: 4.2.0-dev
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: open-import
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Wrongly first described on bug 95312 comment 8 onward (which is a different
issue dealing with exporting), there is a bug when importing .sxc where
formulas get wrongly prefixed with "ooow:" and turned into values, ie.
table:formula="=[.A1]" wrongly becomes "ooow:=[.A1]".

This patch is enough to fix it:

---snip---
diff --git a/main/xmloff/source/transform/OOo2Oasis.cxx
b/main/xmloff/source/transform/OOo2Oasis.cxx
index 126535becb..90be61fb8f 100644
--- a/main/xmloff/source/transform/OOo2Oasis.cxx
+++ b/main/xmloff/source/transform/OOo2Oasis.cxx
@@ -887,7 +887,7 @@ static XMLTransformerActionInit
aTableValueTypeActionTable[] =
                   XML_NAMESPACE_OFFICE, XML_STRING_VALUE ),
        ENTRY0( TABLE, STYLE_NAME, XML_ATACTION_ENCODE_STYLE_NAME_REF ),
        ENTRY1( TABLE, FORMULA, XML_ATACTION_ADD_APP_NAMESPACE_PREFIX,
-                                       XML_NAMESPACE_OOOW ),
+                                       XML_NAMESPACE_OF ),
        ENTRY1Q( TABLE, VALIDATION_NAME, XML_ATACTION_RENAME,
                   XML_NAMESPACE_TABLE, XML_CONTENT_VALIDATION_NAME ),
        ENTRY0( TABLE, TOKEN_INVALID, XML_ATACTION_EOT )
---snip---

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to