From 8cb3414ea18d975923027ddc28248a78fc295b39 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 22 Jul 2005 05:40:03 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxListResourceEdit.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxListResourceEdit.cxx b/src/Qtx/QtxListResourceEdit.cxx index 415248a53..597d945f2 100644 --- a/src/Qtx/QtxListResourceEdit.cxx +++ b/src/Qtx/QtxListResourceEdit.cxx @@ -1061,6 +1061,8 @@ void QtxListResourceEdit::FontItem::setProperty( const QString& name, const QVar } setFamily( fam ); + setSize( -1 ); //set default size + onActivateFamily( -1 ); } else if( name=="widget_flags" ) @@ -1119,7 +1121,7 @@ QString QtxListResourceEdit::FontItem::family() const void QtxListResourceEdit::FontItem::setSize( const int s ) { int cursize = -1; - if( mySizes->isShown() ) + if( mySizes->isShown() && s>0 ) { if( ( myFlags & UserSize ) || mySizes->listBox()->findItem( QString( "%1" ).arg( s ), Qt::ExactMatch ) ) cursize = s; -- 2.39.2