Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28966/src/modules

Modified Files:
        LayoutViewer.cpp 
Log Message:
Make sure wxLayoutList::SetFont(wxFont) is called before setting the color, 
as it resets the color to black over white.

Index: LayoutViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/LayoutViewer.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -b -u -2 -r1.38 -r1.39
--- LayoutViewer.cpp    16 Jul 2005 19:46:12 -0000      1.38
+++ LayoutViewer.cpp    15 Oct 2005 10:37:23 -0000      1.39
@@ -551,4 +551,8 @@
    wxLayoutList *llist = m_window->GetLayoutList();
 
+   bool hasFont = style.HasFont();
+   if ( hasFont )
+     llist->SetFont(style.GetFont());
+
    wxColour colFg, colBg;
    if ( style.HasTextColour() )
@@ -564,8 +568,4 @@
                         colBg.Ok() ? &colBg : NULL);
 
-   bool hasFont = style.HasFont();
-   if ( hasFont )
-      llist->SetFont(style.GetFont());
-
    wxFontEncoding enc = hasFont ? style.GetFont().GetEncoding()
                                 : wxFONTENCODING_SYSTEM;



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to