[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - sd/source

Samuel Mehrbrodt (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 25 09:11:10 UTC 2019


 sd/source/ui/view/drviews2.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 54445260817c51bc00bfeba2e49b4019105299c2
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Thu Nov 21 15:45:26 2019 +0100
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Mon Nov 25 10:10:35 2019 +0100

    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 at CIB.de>
    (cherry picked from commit 30e0deb5d0282491af51ef1f533e738194a2d97d)
    Reviewed-on: https://gerrit.libreoffice.org/83640

diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 664609e87597..2be1ccd2c6c2 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -1108,6 +1108,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);
@@ -1134,6 +1138,8 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
                         {
                             aGraphic = Graphic(mpDrawView->GetMarkedObjBitmapEx());
                         }
+                        // Restore online spelling
+                        GetDoc()->SetOnlineSpell(bOnlineSpell);
                     }
                     break;
                 }


More information about the Libreoffice-commits mailing list