Minor code enhancement

This commit is contained in:
Don Ho 2016-08-18 11:30:33 +02:00
parent c15ff9dc13
commit a43e2db58f

View File

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