Skip to content
Snippets Groups Projects
Commit f5594cf5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

link between images was case sensitive

parent a3dd6e47
No related branches found
No related tags found
1 merge request!292Resolve "uploading of images"
Pipeline #
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment