From 1933e377b6ce0e9f715b5eecc04e86ef76007a8a Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Tue, 17 Apr 2018 13:13:07 +0200 Subject: 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 --- src/location/maps/qgeoprojection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/location') 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; -- cgit v1.2.1