aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/smtk2ssrf-build.sh
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-10-28 13:56:09 +0300
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-29 08:26:11 +0100
commit9367610220b6bae1db2cfbd24f50774de537fe8b (patch)
tree5566f7763608bb8df11147b0f86972bd5b9e00ae /scripts/smtk2ssrf-build.sh
parent6d81e19eae1ecd0fee7dae7a220b8d908df41839 (diff)
downloadsubsurface-9367610220b6bae1db2cfbd24f50774de537fe8b.tar.gz
mapwidget: add the 'isReady' flag to the Map component
The 'isReady' boolean flag is now set to 'true' only once the Component.onCompleted slot is reached. The flag is then used as a safe-guard in the onZoomLevelChanged slot. Calculate the small circle radius (mapHelper.calculateSmallCircleRadius()) only if 'isReady' is set to true. Prevents a crash if the Map widget is not ready, yet a zoom level is set via the 'zoomLevel' property. The crash happens because mapHelper.calculateSmallCircleRadius() has a callback to the Map component to estimate some points and distances of the small circle. Reported-by: Stefan Fuchs <sfuchs@gmx.de> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'scripts/smtk2ssrf-build.sh')
0 files changed, 0 insertions, 0 deletions