diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx index 2db29c725718..6de64c70cbf2 100755 --- a/sd/source/ui/func/fuinsert.cxx +++ b/sd/source/ui/func/fuinsert.cxx @@ -48,9 +48,11 @@ #include #include #include +#include #include #include #include +#include #include #include #ifndef _UNOTOOLS_UCBSTREAMHELPER_HXX @@ -156,7 +158,15 @@ void FuInsertGraphic::DoExecute( SfxRequest& ) if(pGrafObj && aDlg.IsAsLink()) { - // store link only? + // really store as link only? + if( SvtMiscOptions().ShowLinkWarningDialog() ) + { + SvxLinkWarningDialog aWarnDlg(mpWindow,aDlg.GetPath()); + if( aWarnDlg.Execute() != RET_OK ) + return; // don't store as link + } + + // store as link String aFltName(aDlg.GetCurrentFilter()); String aPath(aDlg.GetPath()); pGrafObj->SetGraphicLink(aPath, aFltName);