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
This commit is contained in:
g_j_m 2005-03-23 01:05:02 +00:00
parent 81c7a7de03
commit 2dee56a136

View File

@ -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()