summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-25 20:52:35 +0000
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-02-26 10:12:47 +0100
commitf3d1b49a02744532d637ea398b76b7486e83ea63 (patch)
treec929c867ad9faa616aad77e0fd83e1f3ab7a295b /svtools
parentb434bda77878e87f1eb8efeaab3dd0e5f5c4f420 (diff)
Related: tdf#115866 'Warning' missing
Change-Id: I328db7978ecbb80ddae35cbefc98316dde86f9cf Reviewed-on: https://gerrit.libreoffice.org/50329 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/ehdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index 856f4f59a86a..4d100e4e7e9b 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -308,7 +308,7 @@ bool SfxErrorContext::GetString(sal_uInt32 nErrId, OUString &rStr)
{
sal_uInt16 nId = ( nErrId & ERRCODE_WARNING_MASK ) ? ERRCTX_WARNING : ERRCTX_ERROR;
ResStringArray aEr(ResId(RID_ERRCTX, *pMgr));
- rStr = rStr.replaceAll("$(ERR)", aEr.GetString(nId));
+ rStr = rStr.replaceAll("$(ERR)", aEr.GetString(aEr.FindIndex(nId)));
}
}