Mercurial > hg > octave-nkf
changeset 17143:501420581087
Fix the figure propety "currentpoint" for the FLTK toolkit.
* libinterp/dldfcn/__init_fltk__.cc: Fix error is calcualting the current
point for the FLTK toolkit (set_currentpoint ()).
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 01 Aug 2013 18:34:49 -0400 |
parents | 743c9745009a |
children | 88616c872933 |
files | libinterp/dldfcn/__init_fltk__.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc +++ b/libinterp/dldfcn/__init_fltk__.cc @@ -1110,8 +1110,9 @@ { Matrix pos (1,2,0); pos(0) = px; - // FIXME - only works if (uimenu->is_visible ()) ? - pos(1) = h () - status_h - menu_h - py; + pos(1) = h () - menu_h - py; + if (! uimenu->is_visible ()) + pos(1) = pos(1) + menu_h; fp.set_currentpoint (pos); } }