svx/source/unodraw/unoshape.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 4189b4ebda4a0d2f45cf8e266f7c7be67b770929 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Jun 8 11:14:31 2025 +0500 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sun Jun 8 14:55:25 2025 +0200 Reduce SAL_WARN noise for void results Seen when loading a document as: warn:svx:8840:27520:svx/source/unodraw/unoshape.cxx:1870: SvxShape::GetAnyForItem() Return value has wrong Type, com.sun.star.beans.Pair<double,short> != void for e.g. ParaLeftMarginUnit. Change-Id: I03ea968aaf8a5e9a0a622a3e505398ab267d0889 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186257 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index fa378d5d7883..8df801737f28 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -1865,7 +1865,9 @@ uno::Any SvxShape::GetAnyForItem( SfxItemSet const & aSet, const SfxItemProperty } else { - SAL_WARN_IF(!pMap->aType.isAssignableFrom(aAny.getValueType()), "svx", + SAL_WARN_IF(!pMap->aType.isAssignableFrom(aAny.getValueType()) + && aAny.getValueType() != cppu::UnoType<void>::get(), + "svx", "SvxShape::GetAnyForItem() Return value has wrong Type, " << pMap->aType << " != " << aAny.getValueType()); }