From: asl Date: Fri, 22 Jul 2005 05:40:03 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V3_0_1~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8cb3414ea18d975923027ddc28248a78fc295b39;p=modules%2Fgui.git *** empty log message *** --- 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;