summaryrefslogtreecommitdiffstats
path: root/smtk-import
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 17:05:43 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 22:59:22 +0100
commit1d80b08a8fb1fe06fd5cf60eac43b9ae1dc1197c (patch)
tree7a0f236abe6ed5f0a8fe5fed6ea7ba53b115f35f /smtk-import
parent449c92801b7fee8537fa23c3f03f927cbb4cba5f (diff)
downloadsubsurface-1d80b08a8fb1fe06fd5cf60eac43b9ae1dc1197c.tar.gz
mapwidget.qml: more minor improvements
- Add the helper coordIsValid() and use it in centerOnCoordinate(). This checks for NaN coordinates and prevents an infinite while() loop. - Use '-= 1.0' instead of '--' to be more clear that the decremented variable is a float - Store the current center with 'centerStored' in centerOnCoordinate(). Fixes a possible zoom out glitch. - use Math.floor() to convert 'zoomLevel' to integer when estimating zoomOut in centerOn*() Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'smtk-import')
0 files changed, 0 insertions, 0 deletions