Mercurial > hg > octave-nkf
comparison libinterp/dldfcn/__init_fltk__.cc @ 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 | ea19ea629a09 |
children | 88616c872933 |
comparison
equal
deleted
inserted
replaced
17142:743c9745009a | 17143:501420581087 |
---|---|
1108 { | 1108 { |
1109 if (!fp.is_beingdeleted ()) | 1109 if (!fp.is_beingdeleted ()) |
1110 { | 1110 { |
1111 Matrix pos (1,2,0); | 1111 Matrix pos (1,2,0); |
1112 pos(0) = px; | 1112 pos(0) = px; |
1113 // FIXME - only works if (uimenu->is_visible ()) ? | 1113 pos(1) = h () - menu_h - py; |
1114 pos(1) = h () - status_h - menu_h - py; | 1114 if (! uimenu->is_visible ()) |
1115 pos(1) = pos(1) + menu_h; | |
1115 fp.set_currentpoint (pos); | 1116 fp.set_currentpoint (pos); |
1116 } | 1117 } |
1117 } | 1118 } |
1118 | 1119 |
1119 void set_axes_currentpoint (graphics_object ax, int px, int py) | 1120 void set_axes_currentpoint (graphics_object ax, int px, int py) |