From 414b93285f081cd1a0bfb0847fbd3943bf50093a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 20 Aug 2020 20:32:35 +0100 Subject: cid#1466205 Logically dead code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I965a998f9f1f08ba170a7ef0745d1c0da634c14a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101091 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sc/source/ui/drawfunc/fuins1.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx index 686e00e596a4..2a17b04b582f 100644 --- a/sc/source/ui/drawfunc/fuins1.cxx +++ b/sc/source/ui/drawfunc/fuins1.cxx @@ -392,11 +392,12 @@ FuInsertMedia::FuInsertMedia( ScTabViewShell& rViewSh, } bool bLink(true); - if (!bAPI + bool bInsertMedia = bAPI; #if HAVE_FEATURE_AVMEDIA - || !::avmedia::MediaWindow::executeMediaURLDialog(pWin ? pWin->GetFrameWeld() : nullptr, aURL, &bLink) + if (!bInsertMedia) + bInsertMedia = ::avmedia::MediaWindow::executeMediaURLDialog(pWin ? pWin->GetFrameWeld() : nullptr, aURL, &bLink); #endif - ) + if (!bInsertMedia) return; Size aPrefSize; -- cgit