From 8e189592336e5462ecec5589eb6ebb4182c0c216 Mon Sep 17 00:00:00 2001 From: Apoorv Khare Date: Fri, 15 Mar 2019 02:45:40 +0530 Subject: [PATCH] Fix #14991 TypeError in GIS editor Apoorv Khare Signed-off-by: Apoorv Khare --- js/tbl_gis_visualization.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/tbl_gis_visualization.js b/js/tbl_gis_visualization.js index 853283e851..0cb70ab3dc 100644 --- a/js/tbl_gis_visualization.js +++ b/js/tbl_gis_visualization.js @@ -35,7 +35,7 @@ function zoomAndPan () { $('circle.vector').each(function () { id = $(this).attr('id'); circle = svg.getElementById(id); - svg.change(circle, { + $(svg).change(circle, { r : (3 / scale), 'stroke-width' : (2 / scale) }); @@ -45,7 +45,7 @@ function zoomAndPan () { $('polyline.vector').each(function () { id = $(this).attr('id'); line = svg.getElementById(id); - svg.change(line, { + $(svg).change(line, { 'stroke-width' : (2 / scale) }); }); @@ -54,7 +54,7 @@ function zoomAndPan () { $('path.vector').each(function () { id = $(this).attr('id'); polygon = svg.getElementById(id); - svg.change(polygon, { + $(svg).change(polygon, { 'stroke-width' : (0.5 / scale) }); });