svx/source/table/cell.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit 07832fbb454860501698a2da63eb3fc626bc6c2d Author: Noel Grandin <[email protected]> AuthorDate: Wed Oct 22 11:45:53 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Wed Oct 22 14:19:33 2025 +0200 reduce log noise in Cell::GetAnyForItem and improve the warning message Change-Id: I8f0d3d059fc9044fa5a9f5117c072d8e8ce783a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192831 Reviewed-by: Noel Grandin <[email protected]> Tested-by: Jenkins diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index e66b2a33f065..5a21f93a81e0 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -955,10 +955,12 @@ Any Cell::GetAnyForItem( SfxItemSet const & aSet, const SfxItemPropertyMapEntry* aAny >>= nValue; aAny <<= static_cast<sal_Int16>(nValue); } + else if( pMap->aType == ::cppu::UnoType<css::table::BorderLine>::get() + && aAny.getValueType() == ::cppu::UnoType<css::table::BorderLine2>::get() ) + ; // do not warn for valid case else - { - OSL_FAIL("GetAnyForItem() Returnvalue has wrong Type!" ); - } + SAL_WARN("svx", "GetAnyForItem() Return value has wrong type for property " << pMap->aName + << ", expected " << pMap->aType << " but have " << aAny.getValueType()); } return aAny;
