bugGNU Octave - Bugs: bug #46049, ButtonDownFcn callback of an image


bug #46049: ButtonDownFcn callback of an image

Submitter:  Guillaume <gyom>
Submitted:  Thu 24 Sep 2015 06:05:40 PM UTC
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sun 27 Sep 2015 05:15:46 PM UTC, comment #5: 

Thanks Philip, I pushed the patch on stable:


Closing report.

Pantxo Diribarne <pantxo>
Group Member
Sun 27 Sep 2015 04:30:40 PM UTC, comment #4: 

With the patch it works fine for me on Linux (Magei-4 64b) & Windows 7 (64b)

Philip Nienhuis <philipnienhuis>
Group Member
Sat 26 Sep 2015 09:05:07 AM UTC, comment #3: 


Can one of you test the patch I attached before I push it? Thanks

(file #34982)

Pantxo Diribarne <pantxo>
Group Member
Fri 25 Sep 2015 05:32:12 PM UTC, comment #2: 

I have a simple fix that I'll push soon. I am surprised that it may currently ever work ...

Pantxo Diribarne <pantxo>
Group Member
Fri 25 Sep 2015 12:13:31 PM UTC, comment #1: 

On my Win7 desktop, Octave hangs if this is the first command sequence after booting up the system.

After having tried with rand(2, 2) (which works fine), and trying again with rand(1, 2), it works fine and fast (no delays).
After restarting Octave the initial delay is gone and all works fine as well.

Hmmmm intruiging

Philip Nienhuis <philipnienhuis>
Group Member
Thu 24 Sep 2015 06:05:40 PM UTC, original submission:  

I observe this on my laptop but not on my desktop, so I'm curious what others see: in the following code, the ButtonDownFcn callback is not triggered when one of the dimensions of the image is 1, but it works fine again as soon as dimensions are all greater than 1.

X = rand(1,2); % OK with rand(2,2)
H = imagesc(X);

Guillaume <gyom>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #34982:  fix_image1px_select.patch added by pantxo (1KiB - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-27 pantxo StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2015-09-27 pantxo StatusNone Patch Submitted
    2015-09-26 pantxo Attached File- Added fix_image1px_select.patch, #34982

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code