Added logic to limit maximum font point size for Qt Family Keyboard Text. Prevents crash if user enters an excessive value.

This commit is contained in:
mjbudd77 2022-03-06 22:06:29 -05:00
parent 2b26c041d5
commit c175086cbf
1 changed files with 4 additions and 0 deletions

View File

@ -849,6 +849,10 @@ void FKBConfigDialog::openFontDialog(void)
if ( ok )
{
if ( selFont.pointSize() > 72 )
{
selFont.setPointSize(72);
}
keyboard->setFont( selFont );
keyboard->update();