Kaydet (Commit) 4ebcb400 authored tarafından Michael Stahl's avatar Michael Stahl

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 15859554)

Change-Id: I8ac46de154f93a7109ec29d899c71bfb470d008c
üst 41fb6822
...@@ -159,7 +159,7 @@ bool SfxErrorHandler::CreateString(const ErrorInfo *pErr, OUString &rStr) const ...@@ -159,7 +159,7 @@ bool SfxErrorHandler::CreateString(const ErrorInfo *pErr, OUString &rStr) const
{ {
ErrCode nErrCode(sal_uInt32(pErr->GetErrorCode()) & ERRCODE_ERROR_MASK); 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; return false;
if(GetErrorString(nErrCode, rStr)) if(GetErrorString(nErrCode, rStr))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment