changeset 12903:35ea8b9b2a8e

__init_fltk__.cc: show canvas only, when figure is visible (bug #33321)
author Kai Habel <kai.habel@gmx.de>
date Sun, 31 Jul 2011 20:15:09 +0200
parents b9c66f891281
children 7cdf39348879
files src/DLD-FUNCTIONS/__init_fltk__.cc
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/__init_fltk__.cc
+++ b/src/DLD-FUNCTIONS/__init_fltk__.cc
@@ -861,8 +861,11 @@
 
   void show_canvas (void)
   {
-    canvas->show ();
-    canvas->make_current ();
+    if (fp.is_visible ())
+      {
+        canvas->show ();
+        canvas->make_current ();
+      }
   }
 
   void hide_canvas (void)