diff src/DLD-FUNCTIONS/__init_fltk__.cc @ 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 c99d6785a27e
children 58e46be87180
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/__init_fltk__.cc	Fri Jul 29 17:03:12 2011 -0400
+++ b/src/DLD-FUNCTIONS/__init_fltk__.cc	Sun Jul 31 20:15:09 2011 +0200
@@ -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)