diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-05-22 18:35:13 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-05-22 18:35:13 (GMT) |
commit | 2aaad462ca9d963f5269793673a592e4dd05abdd (patch) | |
tree | 42d2c518b331464d6b77a82056d6e0081c60c00a /Lib/idlelib | |
parent | a8a259eedb6a78d5d157f4868b066b90ff9092da (diff) | |
download | cpython-2aaad462ca9d963f5269793673a592e4dd05abdd.zip cpython-2aaad462ca9d963f5269793673a592e4dd05abdd.tar.gz cpython-2aaad462ca9d963f5269793673a592e4dd05abdd.tar.bz2 |
Issue #26673: Protect IDLE from Linux fonts with reported default size 0.
Such fonts on Linux prevented the configuration dialog from opening.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/configHandler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py index efd5f3c..4c95a39 100644 --- a/Lib/idlelib/configHandler.py +++ b/Lib/idlelib/configHandler.py @@ -721,7 +721,7 @@ class IdleConf: actualFont = Font.actual(f) family = actualFont['family'] size = actualFont['size'] - if size < 0: + if size <= 0: size = 10 # if font in pixels, ignore actual size bold = actualFont['weight']=='bold' return (family, size, 'bold' if bold else 'normal') |