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

Bug #710746 reported by RaiMan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

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)
description: updated
Changed in sikuli:
importance: Undecided → Wishlist
Changed in sikuli:
milestone: none → x1.0-rc2
Revision history for this message
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)
Changed in sikuli:
status: Fix Committed → Fix Released
Revision history for this message
obiwan-92 (obiwan-92) wrote :

Hi !

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

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

Print:
100.0 100.0

Regards.

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.0] Location.getX()/getY() should return int

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)
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.