summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-30 14:24:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-31 11:08:49 +0000
commit305c8365b4066a042cd9cbb42a10f1081b5abb2f (patch)
tree6e9331562a1b9104986f6f472c94e180613b2184 /svx
parent74e675aa81f6a21e15c240807ef7fab3576461ee (diff)
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>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/rulritem.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/dialog/rulritem.cxx b/svx/source/dialog/rulritem.cxx
index 2e1dac9848b8..8e61bf381c3d 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;
}