• R/O
  • SSH
  • HTTPS

molby: Commit


Commit MetaInfo

Revision610 (tree)
Time2017-12-17 10:08:27
Authortoshinagata1964

Log Message

Windows: fix assertion failure on using text field in Ruby dialog.

Change Summary

Incremental Difference

--- trunk/wxSources/RubyDialogFrame.cpp (revision 609)
+++ trunk/wxSources/RubyDialogFrame.cpp (revision 610)
@@ -30,6 +30,8 @@
3030 #include "wx/settings.h"
3131 #include "wx/dcmemory.h"
3232
33+#include "wx/fontenum.h"
34+
3335 #include "RubyDialogFrame.h"
3436
3537 #include "../MolLib/Ruby_bind/Molby_extern.h"
@@ -1066,7 +1068,7 @@
10661068 if (wxDynamicCast(control, wxTextCtrl) != NULL) {
10671069 /* Set default font */
10681070 wxTextAttr attr = ((wxTextCtrl *)control)->GetDefaultStyle();
1069- attr.SetFont(wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT));
1071+ attr.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
10701072 ((wxTextCtrl *)control)->SetDefaultStyle(attr);
10711073 }
10721074
Show on old repository browser