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:
parent
2b26c041d5
commit
c175086cbf
|
@ -849,6 +849,10 @@ void FKBConfigDialog::openFontDialog(void)
|
||||||
|
|
||||||
if ( ok )
|
if ( ok )
|
||||||
{
|
{
|
||||||
|
if ( selFont.pointSize() > 72 )
|
||||||
|
{
|
||||||
|
selFont.setPointSize(72);
|
||||||
|
}
|
||||||
keyboard->setFont( selFont );
|
keyboard->setFont( selFont );
|
||||||
keyboard->update();
|
keyboard->update();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue