summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/ehdl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index a6be046e4647..6e38437f79ac 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -221,9 +221,11 @@ bool SfxErrorHandler::GetErrorString(ErrCode lErrId, OUString &rStr) const
bool bRet = false;
rStr = RID_ERRHDL_CLASS;
+ ErrCode nErrId((sal_uInt16)(sal_uInt32)lErrId);
+
for (const ErrMsgCode* pItem = pIds; pItem->second; ++pItem)
{
- if (pItem->second == lErrId)
+ if (pItem->second == nErrId)
{
rStr = rStr.replaceAll("$(ERROR)", Translate::get(pItem->first, *pResLocale));
bRet = true;