Skip to content

Commit 2d7a2bb

Browse files
authored
Merge pull request #36 from suxiaojack/master
FixFont sometimes can't be right work.
2 parents d9706ab + 7b6ca81 commit 2d7a2bb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dialogs/EditDlg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ void CEditDlg::DoDataExchange(CDataExchange* pDX)
5252
}
5353
else
5454
{
55-
FixFont (m_font, m_ctlText, App.m_strFixedPitchFont, App.m_iFixedPitchFontSize, FW_NORMAL, DEFAULT_CHARSET);
55+
if(App.m_bFixedFontForEditing)
56+
FixFont (m_font, m_ctlText, App.m_strFixedPitchFont, App.m_iFixedPitchFontSize, FW_NORMAL, DEFAULT_CHARSET);
5657
}
5758

5859
}

dialogs/EditMultiLine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void CEditMultiLine::DoDataExchange(CDataExchange* pDX)
4747
DDX_Text(pDX, IDC_TEXT, m_strText);
4848
//}}AFX_DATA_MAP
4949

50-
if(!pDX->m_bSaveAndValidate)
50+
if(!pDX->m_bSaveAndValidate && App.m_bFixedFontForEditing)
5151
FixFont (m_font, m_ctlText, App.m_strFixedPitchFont, App.m_iFixedPitchFontSize, FW_NORMAL, DEFAULT_CHARSET);
5252

5353
}

0 commit comments

Comments
 (0)