summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Msg_Export/src/options.cpp')
-rwxr-xr-xplugins/Msg_Export/src/options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp
index d2a027545e..7ae57f3afe 100755
--- a/plugins/Msg_Export/src/options.cpp
+++ b/plugins/Msg_Export/src/options.cpp
@@ -339,8 +339,8 @@ BOOL bApplyChanges(HWND hwndDlg)
wchar_t szTemp[500];
int nTmp = GetDlgItemInt(hwndDlg, IDC_MAX_CLOUMN_WIDTH, &bTrans, TRUE);
- if (!bTrans || nTmp < 5) {
- mir_snwprintf(szTemp, TranslateT("Max line width must be at least %d"), 5);
+ if (!bTrans || (nTmp > 0 && nTmp < 5)) {
+ mir_snwprintf(szTemp, TranslateT("Max line width must be at least %d. Or use 0 for no limit."), 5);
MessageBox(hwndDlg, szTemp, MSG_BOX_TITEL, MB_OK);
bRet = false;
}