diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-02-19 22:23:58 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-03-10 12:17:46 +0100 |
commit | d98ae159392c0cd4373f40d3da31ecb0f8516938 (patch) | |
tree | d593b4cb8e7c41f1625d902d9339e795cfc072a8 | |
parent | 9eb6e9516bed2d966717a473354a930b894b5bdb (diff) |
Resolves: fdo#69925 Wiki Publisher Extension is not working
Regression from http://cgit.freedesktop.org/libreoffice/core/commit/?id=b80d8c695e6b6ded231e67ed9a80bcd1f1250c03
"compareTo" has been replaced by "==", so we compared the equality ot the pointers on the objects instead of the content of the strings
To make it simple and since we compare String objects, let's simply use "equals" method
Change-Id: I65bc1a87751297411fdbe722d3f49bce5e291638
(cherry picked from commit 9e2d1d21f9a58e320444f6eaea2f006530bbd2cb)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java index ff9f85aaa0bb..4cad2f69ecdd 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java @@ -134,7 +134,7 @@ public final class WikiEditorImpl extends WeakBase { final com.sun.star.util.URL myURL = aURL; //logger.log( Level.INFO, "received dispatch request for: "+aURL.Complete ); - if ( aURL.Protocol == protocolName ) + if ( aURL.Protocol.equals(protocolName) ) { /* synchronized( this ) @@ -146,7 +146,7 @@ public final class WikiEditorImpl extends WeakBase try { - if ( myURL.Path == "send" ) + if ( myURL.Path.equals("send") ) { sendArticle(); } |