Skip to content
Browse files

don't set point size less than 1 in ConsoleWidget - this was raising …

…Qt errors
  • Loading branch information...
1 parent 5163e14 commit 9439f7c1d7395bac7f341fb1f9ded0f70ef06dae @mspacek mspacek committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 IPython/frontend/qt/console/console_widget.py
View
3 IPython/frontend/qt/console/console_widget.py
@@ -598,7 +598,8 @@ def change_font_size(self, delta):
"""Change the font size by the specified amount (in points).
"""
font = self.font
- font.setPointSize(font.pointSize() + delta)
+ size = max(font.pointSize() + delta, 1) # minimum 1 point
+ font.setPointSize(size)
self._set_font(font)
def select_all(self):

0 comments on commit 9439f7c

Please sign in to comment.
Something went wrong with that request. Please try again.