OSDN Git Service

2002-06-14 Martin M. Hunt <hunt@redhat.com>
authorhunt <hunt>
Wed, 3 Jul 2002 20:32:39 +0000 (20:32 +0000)
committerhunt <hunt>
Wed, 3 Jul 2002 20:32:39 +0000 (20:32 +0000)
* library/panedwindow.tcl (_placePlanes): Make certain things
are initialized before attempting to move panes.

libgui/ChangeLog
libgui/library/panedwindow.tcl

index 21ff648..15453b5 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-14  Martin M. Hunt  <hunt@redhat.com>
+
+       * library/panedwindow.tcl (_placePlanes): Make certain things 
+       are initialized before attempting to move panes.
+
 2002-06-07  Martin M. Hunt  <hunt@redhat.com>
 
        * src/tkTableTag.c (Table_TagCmd): Don't decrement past
index a86a07d..7e724ed 100644 (file)
@@ -830,6 +830,11 @@ body cyg::PanedWindow::_placeSash {i} {
 # ------------------------------------------------------------------
 body cyg::PanedWindow::_placePanes {{start 0} {end end} {forget 0}} {
   #puts "placeplanes $start $end"
+
+  if {!$_initialized} {
+    return 
+  }
+
   if {$end=="end"} { set end [expr [llength $_activePanes] - 1] }
   set _updatePanes [lrange $_activePanes $start $end]