]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/font.cpp
a micro bug (but which was enough to break regtest sample) corrected
[wxWidgets.git] / src / gtk / font.cpp
index db97e5010e76251e99294b2c4e2950c06d8995fe..e64a84e99918f0dbb71a283cc6704dd09a29f59a 100644 (file)
@@ -153,12 +153,16 @@ wxFont::wxFont(int PointSize, const char *Face, int Family, int Style,
 wxFont::wxFont( const wxFont& font )
 { 
   Ref( font ); 
+  
+  if (wxTheFontList) wxTheFontList->Append( this );
 }
 
 wxFont::wxFont( const wxFont* font ) 
 { 
   UnRef(); 
   if (font) Ref( *font ); 
+  
+  if (wxTheFontList) wxTheFontList->Append( this );
 }
 
 wxFont::~wxFont(void)