summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-04-17 13:13:07 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-04-18 14:15:19 +0000
commit1933e377b6ce0e9f715b5eecc04e86ef76007a8a (patch)
tree12da2e3cbd2787bb8813b45b72a2ce33a07fd374
parent2570dc81d39b8483aae5eda9a6b36b64e20687bf (diff)
downloadqtlocation-1933e377b6ce0e9f715b5eecc04e86ef76007a8a.tar.gz
Increase expansion factor for expanded visible region to 1.2
This to adjust for potentially large item borders, whose extent is not considered when clipping the item itself. Change-Id: I9ec11fbc8ce48870608378e7618721899bc0b4dc Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/maps/qgeoprojection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeoprojection.cpp b/src/location/maps/qgeoprojection.cpp
index a99656c6..74736cef 100644
--- a/src/location/maps/qgeoprojection.cpp
+++ b/src/location/maps/qgeoprojection.cpp
@@ -685,7 +685,7 @@ void QGeoProjectionWebMercator::updateVisibleRegion()
m_visibleRegionExpanded.clear();
for (const QDoubleVector2D &v: qAsConst(m_visibleRegion)) {
const QDoubleVector2D vc = v - centroid;
- m_visibleRegionExpanded.push_back(centroid + vc * 1.05); // fixing expansion factor to 1.05
+ m_visibleRegionExpanded.push_back(centroid + vc * 1.2); // fixing expansion factor to 1.2
}
c2t::clip2tri clipperExpanded;