From 8d7272141f56935a7fbd629706bb4fefb7d3ba84 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 27 Nov 2024 16:18:09 +0100 Subject: [PATCH] sw: add stub Title impl for SwPostItField It is advertised as a property, but it's not implemented: just avoid the assert fail on inspecting the UNO wrapper. Similar to commit eb3fccbd86ca343f21aa42505fa3400bfec838c8 (sw: add stub Title impl for SwAuthorField, 2022-05-25). Change-Id: Idd49f8c23e2d66616346b30e1f0e04eda9da7725 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177429 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- sw/source/core/fields/docufld.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index 948b955b196f..67c0c46173b9 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -1953,6 +1953,8 @@ bool SwPostItField::QueryValue( uno::Any& rAny, sal_uInt16 nWhichId ) const rAny <<= OUString(OUString::number(m_nPostItId, 16).toAsciiUpperCase()); } break; + case FIELD_PROP_TITLE: + break; default: assert(false); }