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>
diff --git a/svx/source/dialog/rulritem.cxx b/svx/source/dialog/rulritem.cxx
index 2e1dac9..8e61bf3 100644
--- a/svx/source/dialog/rulritem.cxx
+++ b/svx/source/dialog/rulritem.cxx
@@ -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;
}