[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43664] ginput() freezes upon double-clicking
From: |
Andreas Weber |
Subject: |
[Octave-bug-tracker] [bug #43664] ginput() freezes upon double-clicking in a fltk figure |
Date: |
Fri, 21 Nov 2014 16:48:03 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0 |
Update of bug #43664 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
I can confirm this with 3.8.2 and on the default branch (although it's much
harder to reproduuce on default).
The reason on stable is, that in __fttk_ginput__.m, line 51
[x, y, n0, button] = ginput_accumulator (-1, 0, 0, 0)
until (n0 == n || n0 < 0)
waits until n0 matches exactly the number of requested clicks but if the user
is very fast and double clicks, n0 get 2 and the loop doesn't get aborted. A
solution would be to change this to
until (n0 >= n || n0 < 0)
and remove the surplus entries in x,y and button. Can someone test how Matlab
behaves on double clicks in ginput?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43664>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/