summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6caaf2d)
raw | patch | inline | side by side (parent: 6caaf2d)
author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 22 Jan 2008 15:40:13 +0000 (10:40 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 23 Jan 2008 04:37:15 +0000 (23:37 -0500) |
If the horizontal scrollbar isn't currently visible (because it has
not been needed) but we get an update to the scroll port we may find
the scrollbar window exists but the Tcl command doesn't. Apparently
it is possible for Tk to have partially destroyed the scrollbar by
removing the Tcl procedure name but still leaving the widget name in
the window registry.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
not been needed) but we get an update to the scroll port we may find
the scrollbar window exists but the Tcl command doesn't. Apparently
it is possible for Tk to have partially destroyed the scrollbar by
removing the Tcl procedure name but still leaving the widget name in
the window registry.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/choose_rev.tcl | patch | blob | history |
diff --git a/lib/choose_rev.tcl b/lib/choose_rev.tcl
index a063c5bc49fc9bad58f7fd78e7446a097ce86b88..c8821c146386f850c0794df70f605cd9f18dcff3 100644 (file)
--- a/lib/choose_rev.tcl
+++ b/lib/choose_rev.tcl
focus $old_focus
}
}
- $sb set $first $last
+
+ catch {$sb set $first $last}
}
method _show_tooltip {pos} {