diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-11-21 15:45:26 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-11-23 21:26:50 +0100 |
commit | 30e0deb5d0282491af51ef1f533e738194a2d97d (patch) | |
tree | 0e35b5c4c0d911b47a4bd9d2889d209e9c48af4e | |
parent | 51061b780ba42d2b7673de76a729a4084da5ed2b (diff) |
tdf#128932 Disable spellcheck while converting shape to bitmap
To not have red underline in the resulting bitmap
Change-Id: I5d6ae5767df8e8caf295955bdc0e5a5b6b79d45d
Reviewed-on: https://gerrit.libreoffice.org/83404
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index d1f037bf2b69..a31599291056 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -1104,6 +1104,10 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) break; case SID_CONVERT_TO_BITMAP: { + // Disable spelling during conversion + bool bOnlineSpell = GetDoc()->GetOnlineSpell(); + GetDoc()->SetOnlineSpell(false); + // switch on undo for the next operations mpDrawView->BegUndo(SdResId(STR_UNDO_CONVERT_TO_BITMAP)); bool bDone(false); @@ -1130,6 +1134,8 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) { aGraphic = Graphic(mpDrawView->GetMarkedObjBitmapEx()); } + // Restore online spelling + GetDoc()->SetOnlineSpell(bOnlineSpell); } break; } |