Mercurial > octave-antonio
diff libinterp/dldfcn/__init_fltk__.cc @ 19891: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 | d575cd1e0da7 |
children | 4910b70d7328 |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc Mon Mar 02 21:42:31 2015 -0500 +++ b/libinterp/dldfcn/__init_fltk__.cc Mon Mar 02 19:18:36 2015 -0800 @@ -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;