sw/source/uibase/app/docsh2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c025cb6d125d8187453e06055dcf3e65d83d532c Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Oct 23 00:55:24 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Oct 23 09:22:17 2024 +0200 tdf#163486: PVS: Expression is always true V560 A part of conditional expression is always true: pFlt. Change-Id: I208c6f64fe49dec422173b9465b18182c1aac318 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175452 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx index a6f5bf0728bd..0beb039d01d0 100644 --- a/sw/source/uibase/app/docsh2.cxx +++ b/sw/source/uibase/app/docsh2.cxx @@ -567,7 +567,7 @@ void SwDocShell::Execute(SfxRequest& rReq) while( pFlt ) { // --> OD #i117339# - if( pFlt && pFlt->IsAllowedAsTemplate() && + if( pFlt->IsAllowedAsTemplate() && ( pFlt->GetUserData() == "CXML" || pFlt->GetUserData() == "CXMLV" ) ) {