| commit | 658cb77de90ec66abc6d0ed4aba614772ae482bd | [log] |
|---|---|---|
| author | Liu Hao <ianahao331@gmail.com> | Mon Aug 15 14:36:47 2022 +0800 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Wed Aug 17 16:53:51 2022 +0200 |
| tree | 1648de9616e2bcdcf71edf1a1f6be0c21bf80bd1 | |
| parent | e3485e17b06400f5df63d21e00534a6f33b54a72 [diff] |
tdf#149115 Trim the white sapce in title before emptiness check Title that only contains white space should be treated as empty. Change-Id: I7e4ec6aed206e01dd62fb3afc278fa90d84b7598 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138268 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> (cherry picked from commit af87ec3137c32ba098c072304595d8b590f3447c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138293 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/source/core/access/AccessibilityCheck.cxx b/sw/source/core/access/AccessibilityCheck.cxx index 1d4c0f5..50a37dc 100644 --- a/sw/source/core/access/AccessibilityCheck.cxx +++ b/sw/source/core/access/AccessibilityCheck.cxx
@@ -836,7 +836,7 @@ public: const uno::Reference<document::XDocumentProperties> xDocumentProperties( xDPS->getDocumentProperties()); OUString sTitle = xDocumentProperties->getTitle(); if (sTitle.isEmpty()) if (sTitle.trim().isEmpty()) { lclAddIssue(m_rIssueCollection, SwResId(STR_DOCUMENT_TITLE), sfx::AccessibilityIssueID::DOCUMENT_TITLE);