Mercurial > hg > octave-nkf
changeset 20100:fa290c42197e
Implement x- and y-only panning for FLTK (bug #44408).
* __init_fltk__.cc (handle): get pan mode from figure before calling
translate_view function.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 02 Mar 2015 19:18:36 -0800 |
parents | a20f86786abb |
children | 0c32e02d60c3 |
files | libinterp/dldfcn/__init_fltk__.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc +++ b/libinterp/dldfcn/__init_fltk__.cc @@ -1529,7 +1529,11 @@ x1, y1); if (pan_enabled ()) - ap.translate_view ("both", x0, x1, y0, y1); + { + std::string mode = pan_mode (); + + ap.translate_view (mode, x0, x1, y0, y1); + } else if (rotate_enabled ()) { double daz, del;