Prohibit TAB size 0 in TAB settings.

Closes #1814, fixes #1341
This commit is contained in:
Dino 2016-05-02 17:56:19 -04:00 committed by Don Ho
parent 438926bbd9
commit b14d3d5f7b

View File

@ -1829,6 +1829,8 @@ INT_PTR CALLBACK TabSettings::run_dlgProc(UINT Message, WPARAM wParam, LPARAM/*
::GetCursorPos(&p);
int size = tabSizeDlg.doDialog(p);
if (size == -1) return FALSE;
if (size == 0) return FALSE;
//Tab size 0 removal
::SetDlgItemInt(_hSelf, IDC_TABSIZEVAL_STATIC, size, FALSE);
::SetDlgItemInt(_hSelf, IDC_TABSIZEVAL_DISABLE_STATIC, size, FALSE);