From 0a02d5209bd687afb8f980b2d4a591e4f6eb6ba7 Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 16 Feb 2006 12:56:56 +0000 Subject: [PATCH] Fix for problem: Problems with fonts in Python console when you change properties. --- src/Qtx/QtxListResourceEdit.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Qtx/QtxListResourceEdit.cxx b/src/Qtx/QtxListResourceEdit.cxx index 60a5fbe4c..038e189b7 100644 --- a/src/Qtx/QtxListResourceEdit.cxx +++ b/src/Qtx/QtxListResourceEdit.cxx @@ -39,6 +39,7 @@ #include #include #include +#include #include "QtxIntSpinBox.h" #include "QtxDblSpinBox.h" @@ -1130,6 +1131,9 @@ void QtxListResourceEdit::FontItem::setFamily( const QString& f ) if( deffam.canCast( QVariant::String ) ) curtext = deffam.toString(); } + + if ( curtext.isEmpty() ) + curtext = (QApplication::font()).family(); int idx = -1; for ( int i = 0; i < (int)myFamilies->count() && idx < 0; i++ ) -- 2.39.2