Mercurial > octave
diff libinterp/dldfcn/__init_fltk__.cc @ 19028:c419e5487d0d
Fix set_currentpoint in FLTK that figures units property is respected.
* __init_fltk__.cc: Use map_from_boundingbox which respects
the units figure property for set_currentpoint.
* plot.txi: Document figure property currentpoint (not to be confused
with axes property currentpoint) and units.
author | Andreas Weber <andy.weber.aw@gmail.com> |
---|---|
date | Mon, 18 Aug 2014 23:44:25 +0200 |
parents | 0ee9daa71273 |
children | 0f9c5a15c8fa |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc Mon Aug 18 21:25:39 2014 +0200 +++ b/libinterp/dldfcn/__init_fltk__.cc Mon Aug 18 23:44:25 2014 +0200 @@ -1134,10 +1134,7 @@ { if (!fp.is_beingdeleted ()) { - // FIXME: consider figures units property - Matrix pos (1,2,0); - pos(0) = px; - pos(1) = h () - (py + status_h + menu_dy ()); + Matrix pos = fp.map_from_boundingbox (px, py); fp.set_currentpoint (pos); graphics_object robj = gh_manager::get_object (fp.get_parent ()); root_figure::properties& rp =