<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - No macro security dialog with High setting"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111696#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - No macro security dialog with High setting"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111696">bug 111696</a>
from <span class="vcard"><a class="email" href="mailto:noelgrandin@gmail.com" title="Noel Grandin <noelgrandin@gmail.com>"> <span class="fn">Noel Grandin</span></a>
</span></b>
<pre>Very weird.
ErrorResource::getString in uui/ is calling getRest on the passed in errorCode
before comparing to the value in the array.
The other things that get passed to ErrorResource::getString, their definitions
look like:
{ NC_("RID_UUI_ERRHDL", "The operation executed on $(ARG1) was
aborted."),
ErrCode(sal_uInt32(ERRCODE_UUI_IO_ABORT) & ERRCODE_RES_MASK) },
but RID_ERRHDL in svtools/inc/errtxt.hrc does not, it looks like:
{ NC_("RID_ERRHDL", "An attempt was made to execute a macro.\nFor
security reasons, macro support is disabled."),
ErrCode(ERRCODE_SFX_MACROS_SUPPORT_DISABLED) },
Similarly SfxErrorHandler::GetErrorString in sfx2/source/appl/appinit.cxx is
casting to sal_uInt16 which has much the same effect as calling getRest() or
anding with ERRCODE_RES_MASK.
How this used to work I don't know, I suspect that somehow the value in the old
.hrc file was being truncated to 16 bits.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>