]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Add missing checks in update_for_intended_size() in the font selector
authorSimon Tatham <anakin@pobox.com>
Thu, 11 Jul 2013 17:24:28 +0000 (17:24 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 11 Jul 2013 17:24:28 +0000 (17:24 +0000)
commit3d69dd2071839c73d1eb76aead16639b9f5bce1e
treeaaceecb8fe55f97586cfa493bea067607d3dd136
parent5a04ae342012c649c4ba6529a0f832aa2534456b
Add missing checks in update_for_intended_size() in the font selector
code, which would have coped badly if ever asked to select the first
font in the list at a size smaller than it supported. Luckily the
first font tended to be one of the X numeric aliases (e.g. 10x20)
which was stored with size zero, so this probably didn't actually come
up for anyone, but better safe than sorry.

[originally from svn r9910]
unix/gtkfont.c