[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44719] fltk: figure not always updated by mou
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #44719] fltk: figure not always updated by mouse-zoom |
Date: |
Sat, 04 Apr 2015 12:55:09 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:36.0) Gecko/20100101 Firefox/36.0 |
URL:
<http://savannah.gnu.org/bugs/?44719>
Summary: fltk: figure not always updated by mouse-zoom
Project: GNU Octave
Submitted by: None
Submitted on: Sa 04 Apr 2015 12:55:08 UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name: jspecht
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0-rc2
Operating System: GNU/Linux
_______________________________________________________
Details:
octave --no-gui
>> graphics_toolkit('fltk')
>> x=linspace(0,2*pi,100);
>> a=figure(); plot(x,sin(x)); b=figure(); plot(x,cos(x));
>> linkaxes([get([a,b],'currentaxes'){:}],'x');
After zooming a single plot (right mouse button) and then auto-scaling
(double-click left mouse button) the plot window is not updated (i.e. stays
zoomed).
By resizing the figure the missing update can be enforced.
This also happens when zooming linked axes (linkaxes()) of different figures
where it is rather annoying.
Origin is a missing Fdrawnow() in the idle-hook __fltk_check__().
See here the also attached patch:
~/src/octave$ hg diff
diff -r cf9b94a89620 libinterp/dldfcn/__init_fltk__.cc
--- a/libinterp/dldfcn/__init_fltk__.cc Thu Apr 02 15:36:38 2015 -0700
+++ b/libinterp/dldfcn/__init_fltk__.cc Sat Apr 04 14:49:34 2015 +0200
@@ -2274,6 +2274,9 @@
{
#ifdef HAVE_FLTK
Fl::check ();
+
+ if (Vdrawnow_requested)
+ Fdrawnow ();
#else
error ("__fltk_check__: not available without OpenGL and FLTK libraries");
#endif
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sa 04 Apr 2015 12:55:08 UTC Name: fltk-drawnow.patch Size: 397B By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=33532>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44719>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44719] fltk: figure not always updated by mouse-zoom,
anonymous <=