diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-31 18:55:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-01 21:05:00 +0100 |
commit | d3a9db6310204247a3bd8f23a984c5a04afbeef1 (patch) | |
tree | 1281a59dd42891545845d428dfff6a12bc89ca00 /sc | |
parent | 63076928d41d95d6c0bc86580ba8a5a985b1f415 (diff) |
use officecfg for ShowLinkWarningDialog
Change-Id: I92a42eb2ff48bff4e635f1a37a25c8ecb9ac1347
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105153
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/drawfunc/fuins1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx index 4187300e3428..d5a28f8a29ad 100644 --- a/sc/source/ui/drawfunc/fuins1.cxx +++ b/sc/source/ui/drawfunc/fuins1.cxx @@ -19,6 +19,7 @@ #include <config_features.h> +#include <officecfg/Office/Common.hxx> #include <sal/log.hxx> #include <sfx2/opengrf.hxx> #include <svx/svdograf.hxx> @@ -30,7 +31,6 @@ #include <svx/svxids.hrc> #include <vcl/graphicfilter.hxx> #include <svl/stritem.hxx> -#include <svtools/miscopt.hxx> #include <avmedia/mediawindow.hxx> #include <vcl/svapp.hxx> #include <vcl/weld.hxx> @@ -325,7 +325,7 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell& rViewSh, bool bAsLink = aDlg.IsAsLink(); // really store as link only? - if( bAsLink && SvtMiscOptions().ShowLinkWarningDialog() ) + if( bAsLink && officecfg::Office::Common::Misc::ShowLinkWarningDialog::get() ) { SvxLinkWarningDialog aWarnDlg(pWin ? pWin->GetFrameWeld() : nullptr, aFileName); if (aWarnDlg.run() != RET_OK) |