[Libreoffice-commits] core.git: sw/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 30 05:58:53 UTC 2020


 sw/source/ui/chrdlg/drpcps.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit a5be8e97b7699c7d12fa3ae5404af7b2eb50fafb
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Jul 30 01:10:31 2020 +0300
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Jul 30 07:58:11 2020 +0200

    tdf#135244: prevent jumping when generating drop caps preview
    
    Change-Id: Ifd9ade76384c66312eda8c8ee7cb41891459b3f4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99757
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx
index a02cd8dfe215..9580fbd37242 100644
--- a/sw/source/ui/chrdlg/drpcps.cxx
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -195,6 +195,9 @@ void SwDropCapsPict::UpdatePaintSettings()
     vcl::Font aFont;
     if (mpPage)
     {
+        // tdf#135244: preview generation should not jump document view
+        auto aLock(mpPage->rSh.GetView().GetDocShell()->LockAllViews());
+
         if (!mpPage->m_xTemplateBox->get_active())
         {
             // query the Font at paragraph's beginning


More information about the Libreoffice-commits mailing list