From f5594cf506a34f2ea99f20bea787a7a2a7c7e47d Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Fri, 20 Apr 2018 15:07:05 +0200
Subject: [PATCH] link between images was case sensitive

---
 .../java/lcsb/mapviewer/converter/OverviewParser.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/converter/src/main/java/lcsb/mapviewer/converter/OverviewParser.java b/converter/src/main/java/lcsb/mapviewer/converter/OverviewParser.java
index b04589b96d..f4d04e8f4a 100644
--- a/converter/src/main/java/lcsb/mapviewer/converter/OverviewParser.java
+++ b/converter/src/main/java/lcsb/mapviewer/converter/OverviewParser.java
@@ -199,7 +199,7 @@ public class OverviewParser {
 	private Map<String, Model> createMapping(Set<Model> models) {
 		Map<String, Model> result = new HashMap<>();
 		for (Model model : models) {
-			result.put(model.getName(), model);
+			result.put(model.getName().toLowerCase(), model);
 		}
 		return result;
 	}
@@ -214,7 +214,7 @@ public class OverviewParser {
 	 * @param images
 	 *          list of {@link OverviewImage images} that should be connected
 	 * @param coordinatesData
-	 *          {@link String} with the data tken from
+	 *          {@link String} with the data taken from
 	 *          {@link #COORDINATES_FILENAME} file
 	 * @throws InvalidOverviewFile
 	 *           thrown when the data are invalid
@@ -365,7 +365,7 @@ public class OverviewParser {
 	 *          zoom level on the model where redirection should be placed in case
 	 *          of {@link #MODEL_LINK_TYPE} connection
 	 * @param linkType
-	 *          type of the connection. This will define implenentation of
+	 *          type of the connection. This will define implementation of
 	 *          {@link OverviewImage} that will be used. For now three values are
 	 *          acceptable: {@link #MODEL_LINK_TYPE}, {@link #IMAGE_LINK_TYPE},
 	 *          {@link #SEARCH_LINK_TYPE}.
@@ -389,7 +389,7 @@ public class OverviewParser {
 		}
 		OverviewLink ol = null;
 		if (linkType.equals(MODEL_LINK_TYPE)) {
-			Model model = models.get(linkTarget);
+			Model model = models.get(linkTarget.toLowerCase());
 			if (model == null) {
 				throw new InvalidCoordinatesFile("Unknown model in \"" + COORDINATES_FILENAME + "\" file: " + linkTarget);
 			}
-- 
GitLab