m_outputStyle = (enum output_style) m_comboStyle.GetCurSel();
contextSel = m_comboContext.GetCurSel();
- if (contextSel > 0)
+ if (contextSel != CB_ERR)
{
m_comboContext.GetLBText(contextSel, contextText);
- m_contextLines = (int) contextText[0] - '0';
+ m_contextLines = _ttoi(contextText);
}
else
m_contextLines = 0;
2005-07-08 Kimmo
PATCH: [ 1234390 ] Compare >2 MB files with quick contents
Src: DiffWrapper.cpp DiffWrapper.h DirScan.cpp
+ PATCH: [ 1234793 ] Patch generate: 11-line context doesn't work
+ Src: PatchDlg.cpp
2005-07-07 Kimmo
PATCH: [ 1232499 ] Language dialog box Simplified Chinese's name correction