[1.0.1 ok] Location.getX()/getY() should return int

Bug #710746 reported by RaiMan on 2011-01-31
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

see related question

Class Location is defined on the Java level and does not have it's own get/set methods inheriting it from java.awt.Point.

These getX, .... return a double (Python float) value.

RaiMan (raimund-hocke) on 2011-01-31
description: updated
Changed in sikuli:
importance: Undecided → Wishlist
Changed in sikuli:
milestone: none → x1.0-rc2
Tsung-Hsiang Chang (vgod) wrote :

The return type of getX and getY can't be changed, so I add another constructor for Location.
The constructor of Location accepts float as well now.

Changed in sikuli:
status: New → Fix Committed
RaiMan (raimund-hocke) on 2011-02-21
Changed in sikuli:
status: Fix Committed → Fix Released
obiwan-92 (obiwan-92) wrote :

Hi !

The methods getX and getY from the class Location still return float in 1.0.0 release.

l = Location(100, 100)
print l.getX(), l.getY()

100.0 100.0


thanks. will be fixed in service update end July.

summary: - [request] Location.getX() and getY() return Python-float/Java-double
- (from java.awt.Point) - should return int
+ [1.0] Location.getX()/getY() should return int
Changed in sikuli:
status: Fix Released → Fix Committed
importance: Wishlist → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: x1.0-rc2 → 1.1.0
RaiMan (raimund-hocke) on 2013-07-16
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke) on 2013-08-14
summary: - [1.0] Location.getX()/getY() should return int
+ [1.0.1 ok] Location.getX()/getY() should return int
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers