diff --git a/dialogs/MultiLineTriggerDlg.cpp b/dialogs/MultiLineTriggerDlg.cpp index 120f5ee8..cc13b1eb 100644 --- a/dialogs/MultiLineTriggerDlg.cpp +++ b/dialogs/MultiLineTriggerDlg.cpp @@ -86,7 +86,7 @@ void CMultiLineTriggerDlg::DoDataExchange(CDataExchange* pDX) } // end of save and validate else - FixFont (m_font, m_ctlTriggerText, "Courier New", 9, FW_NORMAL, DEFAULT_CHARSET); + FixFont (m_font, m_ctlTriggerText, App.m_strFixedPitchFont, App.m_iFixedPitchFontSize, FW_NORMAL, DEFAULT_CHARSET); } diff --git a/dialogs/world_prefs/TimerDlg.cpp b/dialogs/world_prefs/TimerDlg.cpp index 8212ff27..88b31b2e 100644 --- a/dialogs/world_prefs/TimerDlg.cpp +++ b/dialogs/world_prefs/TimerDlg.cpp @@ -50,6 +50,7 @@ CTimerDlg::CTimerDlg(CWnd* pParent /*=NULL*/) m_current_timer = NULL; m_pTimerMap = NULL; + m_font = NULL; m_pDoc = NULL; } @@ -253,6 +254,13 @@ void CTimerDlg::DoDataExchange(CDataExchange* pDX) } // end of having non-blank procedure } // end of saving and validating + else + { + if (App.m_bFixedFontForEditing) + { + FixFont(m_font, m_ctlContents, App.m_strFixedPitchFont, App.m_iFixedPitchFontSize, FW_NORMAL, DEFAULT_CHARSET); + } + } } diff --git a/dialogs/world_prefs/TimerDlg.h b/dialogs/world_prefs/TimerDlg.h index 912532a4..6b01e4b6 100644 --- a/dialogs/world_prefs/TimerDlg.h +++ b/dialogs/world_prefs/TimerDlg.h @@ -17,6 +17,7 @@ class CTimerDlg : public CDialog // Construction public: CTimerDlg(CWnd* pParent = NULL); // standard constructor + ~CTimerDlg() { delete m_font; }; // Dialog Data //{{AFX_DATA(CTimerDlg) @@ -52,6 +53,7 @@ class CTimerDlg : public CDialog CTimerMap * m_pTimerMap; CTimer * m_current_timer; + CFont * m_font; CMUSHclientDoc * m_pDoc;