reduce the 'Returnvalue has wrong Type' log spam

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 <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2025-08-18 14:04:42 +02:00
parent 7905077311
commit 003449bd9f
+1 -1
View File
@@ -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!");
}
}