[Kstars-devel] [PATCH] Fixing bug with angular distance tool

Akarsh Simha akarshsimha at gmail.com
Sun May 18 01:02:04 CEST 2008


Hi

The angular distance tool was using the MousePoint from the SkyMap
class for finding the start and end points of the angular
distance. This would result in a problem when the user was hovering
somewhere on the menu before selecting "Angular Distance To" and a
SkyMap::forceUpdate was called within the time between the popping up
of the menu and the selection of "Angular distance to", because
forceUpdate() causes MousePoint to be re-computed, causing the current
mouse position to be taken as the start point for the angular
distance.

Replacing mousePoint() by clickedPoint() in the
slotBeginAngularDistance() and slotEndAngularDistance() slots fixes
this.

Please find the patch attached.

Regards
Akarsh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kstars_angular_distance_tool_fix.patch
Type: text/x-diff
Size: 2518 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20080518/2b943060/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20080518/2b943060/attachment.pgp 


More information about the Kstars-devel mailing list