diff options
author | rbuj <robert.buj@gmail.com> | 2014-08-02 12:18:16 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-08-02 11:24:44 +0000 |
commit | 316a6ddf1afd3d3dc7a5b18e7328d888e4230a73 (patch) | |
tree | 523cdd65269c0211470a996229f19dbbac232e58 /xmerge | |
parent | cf22f952af0b4e27d0b591f3a89a48c19918514c (diff) |
xmerge: String comparison
Change-Id: I9a99c188eb63a7854890da8e4088a4ce15a169e0
Reviewed-on: https://gerrit.libreoffice.org/10687
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java index d51dcfe34cb2..7be7b492cd30 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java @@ -766,9 +766,9 @@ public abstract class OfficeDocument rootElement.setAttribute("xmlns:script","http://openoffice.org/2000/script" ); rootElement.setAttribute("xmlns:config","http://openoffice.org/2001/config" ); // #i41033# OASIS format needs the "office:class" set. - if(getDocumentMimeType() == SXC_MIME_TYPE) + if(getDocumentMimeType().equals(SXC_MIME_TYPE)) rootElement.setAttribute("office:class","spreadsheet" ); - else if(getDocumentMimeType() == SXW_MIME_TYPE) + else if(getDocumentMimeType().equals(SXW_MIME_TYPE)) rootElement.setAttribute("office:class","text" ); rootElement.setAttribute("office:version","1.0"); |