https://bugs.documentfoundation.org/show_bug.cgi?id=111696

--- Comment #14 from Noel Grandin <noelgran...@gmail.com> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to