CVS: M/src/gui wxMGuiUtils.cpp,1.2,1.3

Vadim Zeitlin <[email protected]>
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv21472/src/gui

Modified Files:
	wxMGuiUtils.cpp 
Log Message:
create correct font if size is default but family is not

Index: wxMGuiUtils.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMGuiUtils.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- wxMGuiUtils.cpp	9 Sep 2006 13:00:40 -0000	1.2
+++ wxMGuiUtils.cpp	19 Sep 2006 00:24:33 -0000	1.3
@@ -23,5 +23,4 @@
 #  include "Mcommon.h"
 #  include "guidef.h"
-
 #endif // USE_PCH
 
@@ -112,5 +111,5 @@
    // if we don't, or if creating font from it failed, create the font with the
    // given size and family if we have [either of] them
-   if ( !font.Ok() && (fontSize != -1 || fontFamily != -1) )
+   if ( !font.Ok() && (fontSize != -1 || fontFamily != wxFONTFAMILY_DEFAULT) )
    {
       font = wxFont


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.