sfx2/source/doc/objstor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d9920fe89aad76898d8a9c6a70c77a052861a328 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Nov 27 12:37:25 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Nov 27 14:05:03 2024 +0100 PVS: V560 A part of conditional expression is always true: bOk Since commit 4e2453022f82074542811faf0cd051cf33151cf8 Author: Rüdiger Timm <r...@openoffice.org> Date: Mon Jan 31 07:53:46 2005 +0000 INTEGRATION: CWS fwkbugfix05 (1.145.34); FILE MERGED Change-Id: I707fd1b1f7d315542b6afecbe19739a34033d9a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177409 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index fcee218a687a..3b7d1ea47a99 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -853,7 +853,7 @@ bool SfxObjectShell::DoLoad( SfxMedium *pMed ) const SfxBoolItem* pAsTempItem = rSet.GetItem(SID_TEMPLATE, false); const SfxBoolItem* pPreviewItem = rSet.GetItem(SID_PREVIEW, false); const SfxBoolItem* pHiddenItem = rSet.GetItem(SID_HIDDEN, false); - if( bOk && !pMedium->GetOrigURL().isEmpty() + if( !pMedium->GetOrigURL().isEmpty() && !( pAsTempItem && pAsTempItem->GetValue() ) && !( pPreviewItem && pPreviewItem->GetValue() ) && !( pHiddenItem && pHiddenItem->GetValue() ) )