summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-01-30 21:06:05 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-01-30 21:06:05 (GMT)
commit6545410850c0fbfa94a03bb887fe56ba80ccd20c (patch)
tree0b5d6239c1eb310ef2de27203e9688678efe4a83 /library
parent299680ade6271c4ba2caee88336943e3bae2fab9 (diff)
downloadtk-6545410850c0fbfa94a03bb887fe56ba80ccd20c.zip
tk-6545410850c0fbfa94a03bb887fe56ba80ccd20c.tar.gz
tk-6545410850c0fbfa94a03bb887fe56ba80ccd20c.tar.bz2
catch font create when the console is re-sourced via F9
Diffstat (limited to 'library')
-rw-r--r--library/console.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 6c176bc..7008c91 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.37 2007/12/13 15:26:27 dgp Exp $
+# RCS: @(#) $Id: console.tcl,v 1.37.2.1 2009/01/30 21:06:05 patthoyts Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -106,7 +106,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} }