# HG changeset patch # User Rik # Date 1425352716 28800 # Node ID fa290c42197eea45b9c6de2cdcb1d175b222a509 # Parent a20f86786abbc036c014f334eabdba32b1b7eb0a Implement x- and y-only panning for FLTK (bug #44408). * __init_fltk__.cc (handle): get pan mode from figure before calling translate_view function. diff --git a/libinterp/dldfcn/__init_fltk__.cc b/libinterp/dldfcn/__init_fltk__.cc --- 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;