From 2dee56a1366749deac1e0f78080ffcd60c5295a2 Mon Sep 17 00:00:00 2001 From: g_j_m Date: Wed, 23 Mar 2005 01:05:02 +0000 Subject: [PATCH] Bug fix for X11 zoom bug fix (zoom in enough and lines would disappear from the screen when they shouldn't of). git-svn-id: http://svn.osgeo.org/qgis/trunk@3007 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/qgsmaptopixel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qgsmaptopixel.cpp b/src/qgsmaptopixel.cpp index 47d150ae187..6d8ed24e28b 100644 --- a/src/qgsmaptopixel.cpp +++ b/src/qgsmaptopixel.cpp @@ -268,7 +268,8 @@ bool QgsMapToPixel::trimLine(const QgsPoint& from, const QgsPoint& to, } // If the line hasn't been trimmed yet, it is entirely outside the // boundary, so tell the calling code. - return false; + if (!toDone && !fromDone) + return false; } else { @@ -278,7 +279,7 @@ bool QgsMapToPixel::trimLine(const QgsPoint& from, const QgsPoint& to, } // Too verbose for QGISDEBUG, but handy sometimes. - /* + /* std::cerr << "Point 1 trimmed from " << from.x() << ", " << from.y() << " to " << tFrom.x() << ", " << tFrom.y() << '\n' << "Point 2 trimmed from " << to.x() << ", " << to.y()