From 6d343ca11e8b43d9f425ff858aa1aaf34ee439f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Tue, 27 Feb 2007 21:36:02 +0000
Subject: [PATCH] - corrected the inversion of "force" in align()

---
 html/relnotes.html                                            | 1 +
 src/fr/inrialpes/exmo/align/service/AServProtocolManager.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/html/relnotes.html b/html/relnotes.html
index ea7c47cb..74eff9db 100644
--- a/html/relnotes.html
+++ b/html/relnotes.html
@@ -45,6 +45,7 @@
 <li>Got rid of the property file for wordnet</li>
 <li>In Server/FIPA, suppressed generated files on close()</li>
 <li>In Server/FIPA, suppressed printout</li>
+<li>Corrected an error on "force"-ing alignment in Server/HTML (was inverted)</li>
 </ul></p>
 
 <h2>February 25th, 2007</h2>
diff --git a/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java b/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java
index 40ddf0de..b6b76e54 100644
--- a/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java
+++ b/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java
@@ -276,7 +276,7 @@ public class AServProtocolManager {
 	    // Unexpected OWLException!
 	}
 	String id = null;
-	if ( alignments != null && params.getParameter("force") != null ) {
+	if ( alignments != null && params.getParameter("force") == null ) {
 	    for ( Iterator it = alignments.iterator(); it.hasNext() && (id == null); ){
 		Alignment al = ((Alignment)it.next());
 		if ( al.getExtension( "method" ).equals(method) )
-- 
GitLab