Mercurial > hg > octave-lojdl
changeset 17207:d23fcc227fa9
Account for uimenu height when determining the axes currentpoint.
* libinterp/dldfcn/__init_fltk__.cc (set_axes_currentpoint): When present,
offset the axes currentpoint by the unmenu height.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 07 Aug 2013 18:27:42 -0400 |
parents | fe7cb5bb4388 |
children | 9e613baf431e |
files | libinterp/dldfcn/__init_fltk__.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc +++ b/libinterp/dldfcn/__init_fltk__.cc @@ -1112,7 +1112,7 @@ pos(0) = px; pos(1) = h () - menu_h - py; if (! uimenu->is_visible ()) - pos(1) = pos(1) + menu_h; + pos(1) = pos(1) + menu_h; fp.set_currentpoint (pos); graphics_object robj = gh_manager::get_object (fp.get_parent ()); root_figure::properties& rp = @@ -1129,6 +1129,8 @@ dynamic_cast<axes::properties&> (ax.get_properties ()); double xx, yy; + if (uimenu->is_visible ()) + py = py - menu_h; pixel2pos (ax, px, py, xx, yy); Matrix pos (2,3,0);