diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-08-24 21:03:58 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-08-24 21:26:03 +0200 |
commit | 4ebcb4009e2185961fe3d716bd07ef2013ecd070 (patch) | |
tree | b7a6663718c16eb304082bc35f1aba96cef5be74 /svtools | |
parent | 41fb6822cbc2f82333ea54db816f60616f827e49 (diff) |
svtools: fix checking of ErrCodeArea so error dialogs are shown again
Previously SfxErrorHandler::CreateString() compared the entire error
code so >=/<= worked but now only the ErrCodeArea is compared,
so only </> works.
(regression from 158595543053c158a9bcb95f679e7b8a3c2e4e89)
Change-Id: I8ac46de154f93a7109ec29d899c71bfb470d008c
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/ehdl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx index 2941c80397d7..effe4ecb5860 100644 --- a/svtools/source/misc/ehdl.cxx +++ b/svtools/source/misc/ehdl.cxx @@ -159,7 +159,7 @@ bool SfxErrorHandler::CreateString(const ErrorInfo *pErr, OUString &rStr) const { ErrCode nErrCode(sal_uInt32(pErr->GetErrorCode()) & ERRCODE_ERROR_MASK); - if( pErr->GetErrorCode().GetArea() > lEnd || pErr->GetErrorCode().GetArea() <= lStart ) + if (pErr->GetErrorCode().GetArea() < lStart || lEnd < pErr->GetErrorCode().GetArea()) return false; if(GetErrorString(nErrCode, rStr)) { |