Kaydet (Commit) d98279db authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Caolán McNamara

Related: #i120513# Remove autocompletion suggestion...

when inserting comment via menu/shortcut

Author: orw, alg
(cherry picked from commit bfeefdb5)

Conflicts:
	sw/source/ui/shells/textfld.cxx

Change-Id: I42dbfb46f784262d941f1c9b3e0b4a0b623067d9
üst 6bd99f8d
......@@ -33,7 +33,6 @@
#include <sfx2/request.hxx>
#include <svx/postattr.hxx>
#include <svx/hlnkitem.hxx>
#include <svx/svxdlg.hxx>
#include <sfx2/linkmgr.hxx>
#include <unotools/localedatawrapper.hxx>
......@@ -54,19 +53,16 @@
#include <expfld.hxx>
#include <fldmgr.hxx>
#include <uitool.hxx>
#include <cmdid.h>
#include <shells.hrc>
#include <sfx2/app.hxx>
#include <svx/dialogs.hrc>
#include "swabstdlg.hxx"
#include "dialog.hrc"
#include <fldui.hrc>
#include <doc.hxx>
#include <app.hrc>
#include <edtwin.hxx>
#include <PostItMgr.hxx>
#include <switerator.hxx>
......@@ -355,6 +351,11 @@ void SwTextShell::ExecField(SfxRequest &rReq)
rSh.KillPams();
rSh.ClearMark();
}
// #i120513# Inserting a comment into an autocompletion crashes
// --> suggestion has to be removed before
GetView().GetEditWin().StopQuickHelp();
SwInsertFld_Data aData(TYP_POSTITFLD, 0, sAuthor, aEmptyStr, 0);
aFldMgr.InsertFld(aData, &aSaved);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment