From ecb18189dc306a618c747a899795c61fc4f2d708 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Wed, 14 Aug 2019 14:29:49 +0200 Subject: [PATCH] export as imgae uses min not max function --- CHANGELOG | 1 + frontend-js/src/main/js/map/AbstractCustomMap.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 822bae6270..a10cdb0079 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ minerva (13.1.3) stable; urgency=medium * Bug fix: refreshing list of projects or list of users doesn't change active page (#870) * Bug fix: submap list must be selected to export from every submap (#874) + * Bug fix: export map as image properly uses bottom limit (#875) -- Piotr Gawron <piotr.gawron@uni.lu> Wed, 14 Aug 2019 17:00:00 +0200 diff --git a/frontend-js/src/main/js/map/AbstractCustomMap.js b/frontend-js/src/main/js/map/AbstractCustomMap.js index 9775e8bcba..ba2803b9e5 100644 --- a/frontend-js/src/main/js/map/AbstractCustomMap.js +++ b/frontend-js/src/main/js/map/AbstractCustomMap.js @@ -187,7 +187,7 @@ AbstractCustomMap.prototype.registerMapClickEvents = function () { var y1 = Math.max(0, topLeft.y); var x2 = Math.min(self.getModel().getWidth(), rightBottom.x); - var y2 = Math.max(self.getModel().getHeight(), rightBottom.y); + var y2 = Math.min(self.getModel().getHeight(), rightBottom.y); var polygon = ""; polygon += x1 + "," + y1 + ";"; -- GitLab