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

New commits:
commit a5be8e97b7699c7d12fa3ae5404af7b2eb50fafb
Author:     Mike Kaganski <[email protected]>
AuthorDate: Thu Jul 30 01:10:31 2020 +0300
Commit:     Mike Kaganski <[email protected]>
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 <[email protected]>

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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to