Closed GoogleCodeExporter closed 9 years ago
Let me answer my own question.
I inspected the source-code and found this:
(MMapArea.py line 735+)
for t in self.thoughts:
try:
if t.lr[0] >= ax and t.ul[0] <= ax + width and t.lr[1] <= ay +
height and t.ul[1] >= ay:
t.draw (context)
except:
t.draw(context)
Look at the "if" condition: it seems that the x and y coordinate are handled
differently. This should be the bug.
A quick fix is to change that line into:
if t.lr[0] >= ax and t.ul[0] <= ax + width and t.lr[1] >= ay and t.ul[1] <= ay +
height:
I prefer this method (but may be slower):
if max(t.ul[0],ax)<=min(t.lr[0],ax+width) and
max(t.ul[1],ay)<=min(t.lr[1],ay+height0):
Original comment by wks1...@gmail.com
on 16 Feb 2009 at 3:07
fixed in revision 346. Thanks for your patch.
Original comment by sinfr...@gmail.com
on 26 Feb 2009 at 10:01
Original issue reported on code.google.com by
wks1...@gmail.com
on 15 Feb 2009 at 9:56Attachments: