From: mzn Date: Thu, 16 Feb 2006 12:56:56 +0000 (+0000) Subject: Fix for problem: Problems with fonts in Python console when you change properties. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a02d5209bd687afb8f980b2d4a591e4f6eb6ba7;p=modules%2Fgui.git Fix for problem: Problems with fonts in Python console when you change properties. --- 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++ )