Kaydet (Commit) 316a6ddf authored tarafından rbuj's avatar rbuj Kaydeden (comit) David Tardon

xmerge: String comparison

Change-Id: I9a99c188eb63a7854890da8e4088a4ce15a169e0
Reviewed-on: https://gerrit.libreoffice.org/10687Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst cf22f952
...@@ -766,9 +766,9 @@ public abstract class OfficeDocument ...@@ -766,9 +766,9 @@ public abstract class OfficeDocument
rootElement.setAttribute("xmlns:script","http://openoffice.org/2000/script" ); rootElement.setAttribute("xmlns:script","http://openoffice.org/2000/script" );
rootElement.setAttribute("xmlns:config","http://openoffice.org/2001/config" ); rootElement.setAttribute("xmlns:config","http://openoffice.org/2001/config" );
// #i41033# OASIS format needs the "office:class" set. // #i41033# OASIS format needs the "office:class" set.
if(getDocumentMimeType() == SXC_MIME_TYPE) if(getDocumentMimeType().equals(SXC_MIME_TYPE))
rootElement.setAttribute("office:class","spreadsheet" ); 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:class","text" );
rootElement.setAttribute("office:version","1.0"); rootElement.setAttribute("office:version","1.0");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment