From 003449bd9ff89d64f77167363157d122a1fe3869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 18 Aug 2025 09:57:11 +0100 Subject: [PATCH] reduce the 'Returnvalue has wrong Type' log spam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if there was no result found don't misleadingly warn that it's of the wrong type Change-Id: I647c847e68a6ac7ca93f7fc860a8e376acce06e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189853 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- sd/source/core/stlsheet.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index db64921180f7..9d1a75672f3b 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -1182,7 +1182,7 @@ css::uno::Any SdStyleSheet::getPropertyValue_Impl(const OUString& PropertyName) } else { - OSL_FAIL("SvxShape::GetAnyForItem() Returnvalue has wrong Type!" ); + SAL_WARN_IF(aAny.hasValue(), "sd", "SvxShape::GetAnyForItem() Returnvalue has wrong Type!"); } }