mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
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:
parent
81c7a7de03
commit
2dee56a136
@ -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
|
// If the line hasn't been trimmed yet, it is entirely outside the
|
||||||
// boundary, so tell the calling code.
|
// boundary, so tell the calling code.
|
||||||
return false;
|
if (!toDone && !fromDone)
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -278,7 +279,7 @@ bool QgsMapToPixel::trimLine(const QgsPoint& from, const QgsPoint& to,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Too verbose for QGISDEBUG, but handy sometimes.
|
// Too verbose for QGISDEBUG, but handy sometimes.
|
||||||
/*
|
/*
|
||||||
std::cerr << "Point 1 trimmed from " << from.x() << ", " << from.y()
|
std::cerr << "Point 1 trimmed from " << from.x() << ", " << from.y()
|
||||||
<< " to " << tFrom.x() << ", " << tFrom.y() << '\n'
|
<< " to " << tFrom.x() << ", " << tFrom.y() << '\n'
|
||||||
<< "Point 2 trimmed from " << to.x() << ", " << to.y()
|
<< "Point 2 trimmed from " << to.x() << ", " << to.y()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user