summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-01-30 21:02:13 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-01-30 21:02:13 (GMT)
commitc9098b1706ee463447e128156b9baaf23fa4f0a9 (patch)
treee58613b5175c69072cb4545d78e0b3e45035d593
parent53f95f2d8f73b96fbd4dac1a784ce90eb133c0a1 (diff)
downloadtk-c9098b1706ee463447e128156b9baaf23fa4f0a9.zip
tk-c9098b1706ee463447e128156b9baaf23fa4f0a9.tar.gz
tk-c9098b1706ee463447e128156b9baaf23fa4f0a9.tar.bz2
catch font create when the console is re-sourced via F9
-rw-r--r--library/console.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 2fddfe3..7f39ec3 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -4,7 +4,7 @@
# can be used by non-unix systems that do not have built-in support
# for shells.
#
-# RCS: @(#) $Id: console.tcl,v 1.39 2008/12/10 05:02:51 das Exp $
+# RCS: @(#) $Id: console.tcl,v 1.40 2009/01/30 21:02:13 patthoyts Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -123,7 +123,7 @@ proc ::tk::ConsoleInit {} {
. configure -menu .menubar
# See if we can find a better font than the TkFixedFont
- font create TkConsoleFont {*}[font configure TkFixedFont]
+ catch {font create TkConsoleFont {*}[font configure TkFixedFont]}
set families [font families]
switch -exact -- [tk windowingsystem] {
aqua { set preferred {Monaco 10} }