changeset: 101479:1464df337152 branch: 3.5 parent: 101474:41f065b2e451 user: Terry Jan Reedy date: Sun May 22 14:35:24 2016 -0400 files: Lib/idlelib/configHandler.py description: Issue #26673: Protect IDLE from Linux fonts with reported default size 0. Such fonts on Linux prevented the configuration dialog from opening. diff -r 41f065b2e451 -r 1464df337152 Lib/idlelib/configHandler.py --- a/Lib/idlelib/configHandler.py Sun May 22 18:23:36 2016 +0300 +++ b/Lib/idlelib/configHandler.py Sun May 22 14:35:24 2016 -0400 @@ -720,7 +720,7 @@ 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')