Merge lp:~marjinal1st/ubuntu/trusty/python-sfml/bugfix into lp:ubuntu/trusty/python-sfml

Proposed by Ahmet Sezgin DURAN
Status: Needs review
Proposed branch: lp:~marjinal1st/ubuntu/trusty/python-sfml/bugfix
Merge into: lp:ubuntu/trusty/python-sfml
Diff against target: 12 lines (+1/-1)
1 file modified
src/sfml/graphics.pyx (+1/-1)
To merge this branch: bzr merge lp:~marjinal1st/ubuntu/trusty/python-sfml/bugfix
Reviewer Review Type Date Requested Status
Brian Murray Needs Fixing
Review via email: mp+244241@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

It'd be best to put this in a patch in the debian/patches directory using the patch system of the package - quilt.

review: Needs Fixing

Unmerged revisions

14. By Ahmet Sezgin DURAN

Updated intersects method

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/sfml/graphics.pyx'
--- src/sfml/graphics.pyx 2013-12-09 17:50:52 +0000
+++ src/sfml/graphics.pyx 2014-12-09 23:20:39 +0000
@@ -185,7 +185,7 @@
185 def intersects(self, rectangle):185 def intersects(self, rectangle):
186 # make sure the rectangle is a rectangle (to get its right/bottom border)186 # make sure the rectangle is a rectangle (to get its right/bottom border)
187 l, t, w, h = rectangle187 l, t, w, h = rectangle
188 rectangle = Rectangle(l, t, w, h)188 rectangle = Rectangle((l, t), (w, h))
189189
190 # compute the intersection boundaries190 # compute the intersection boundaries
191 left = max(self.left, rectangle.left)191 left = max(self.left, rectangle.left)

Subscribers

People subscribed via source and target branches