diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index 93bdfa3ac..3581b16bb 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -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);