Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
ecb18189
Commit
ecb18189
authored
Aug 14, 2019
by
Piotr Gawron
Browse files
export as imgae uses min not max function
parent
bc5f6e96
Pipeline
#12767
passed with stage
in 12 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
ecb18189
...
...
@@ -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
...
...
frontend-js/src/main/js/map/AbstractCustomMap.js
View file @
ecb18189
...
...
@@ -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
.
m
ax
(
self
.
getModel
().
getHeight
(),
rightBottom
.
y
);
var
y2
=
Math
.
m
in
(
self
.
getModel
().
getHeight
(),
rightBottom
.
y
);
var
polygon
=
""
;
polygon
+=
x1
+
"
,
"
+
y1
+
"
;
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment