summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Rahn <[email protected]>2016-07-15 02:03:59 +0200
committerTorsten Rahn <[email protected]>2016-07-15 02:06:43 +0200
commitaab20dfb02e76e91a60c6a6019eacb0ad3a8a304 (patch)
tree25dafa025c196669a5da54069afebf49bc8820c9
parent01c624006375b792e53361d9e6312c0c28048fb9 (diff)
Fix horizontal polygon cut-off which occurs when the window height
is bigger than the window width. Seen in https://www.youtube.com/watch?v=Dd_x7XZg_-8
-rw-r--r--src/lib/marble/GeoPainter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/marble/GeoPainter.cpp b/src/lib/marble/GeoPainter.cpp
index 019bc46..e14d7aa 100644
--- a/src/lib/marble/GeoPainter.cpp
+++ b/src/lib/marble/GeoPainter.cpp
@@ -792,7 +792,7 @@ void GeoPainter::drawPolygon ( const GeoDataPolygon & polygon,
if (innerBoundariesOnScreen) {
// Cut the outer polygons to the viewport
- QVector<QPointF> viewportPolygon = QPolygonF(QRectF(0, 0, d->m_viewport->width(), d->m_viewport->width()));
+ QVector<QPointF> viewportPolygon = QPolygonF(QRectF(0, 0, d->m_viewport->width(), d->m_viewport->height()));
foreach(QPolygonF* outerPolygon, outerPolygons) {
*outerPolygon = outerPolygon->intersected(QPolygonF(viewportPolygon));
}