ingenuitas/SimpleCV — pull request #270 by ankit784 (2012-12-24 18:27:48+00:00)
Title: Fixed bug in getLineScan() method

I found a small bug in the getLineScan() method when y is not None and the value of y exceeded the height of the image. It gave an error instead of logging a warning.

![Screenshot from 2012-12-24 23:35:54](https://f.cloud.github.com/assets/820105/29973/1622ecd4-4df7-11e2-9859-8cca4b39e024.png)

elif( x is None and y is not None and pt1 is None and pt2 is None):
if( y >= 0 and x < self.height):
retVal = LineScan(gray[:,y])
retVal.image = self

The problem was in the second line where x < self.height should actually be y < self.height