Resolves: tdf#150676 silence SvxColumnItem::QueryValue with 0 arg warning

which is commonly seen and not unexpected

Change-Id: I3dde49f8cee206985187e9317a354536f18f4e0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144877
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-12-30 14:24:07 +00:00
parent 74e675aa81
commit 305c8365b4

View File

@ -458,6 +458,10 @@ bool SvxColumnItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
nMemberId &= ~CONVERT_TWIPS;
switch ( nMemberId )
{
case 0:
// SfxDispatchController_Impl::StateChanged calls this with hardcoded 0 triggering this;
SAL_INFO("svx", "SvxColumnItem::QueryValue with nMemberId of 0");
return false;
case MID_COLUMNARRAY:
return false;
case MID_RIGHT:
@ -476,8 +480,7 @@ bool SvxColumnItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
rVal <<= bTable;
break;
default:
// SfxDispatchController_Impl::StateChanged calls this with hardcoded 0 triggering this;
OSL_FAIL("Wrong MemberId!");
SAL_WARN("svx", "Wrong MemberId!");
return false;
}