[map][scale] Fix localization (#14825)
The wrong key was used in the `cachedTransformations` map. Instead of the correctyl localized UID from the registry the provided transformation function was used. Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
a0d84732a3
commit
f2f0f4b402
|
@ -81,7 +81,7 @@ public class MapTransformationService
|
|||
if (!cachedTransformations.containsKey(transformation.getUID())) {
|
||||
importConfiguration(transformation);
|
||||
}
|
||||
Properties properties = cachedTransformations.get(function);
|
||||
Properties properties = cachedTransformations.get(transformation.getUID());
|
||||
if (properties != null) {
|
||||
String target = properties.getProperty(source);
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ public class ScaleTransformationService
|
|||
if (!cachedTransformations.containsKey(transformation.getUID())) {
|
||||
importConfiguration(transformation);
|
||||
}
|
||||
Map<@Nullable Range, String> data = cachedTransformations.get(function);
|
||||
Map<@Nullable Range, String> data = cachedTransformations.get(transformation.getUID());
|
||||
|
||||
if (data != null) {
|
||||
String target;
|
||||
|
|
Loading…
Reference in New Issue