[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - include/svx svx/source

Jim Raykowski raykowj at gmail.com
Wed Oct 25 14:33:34 UTC 2017


 include/svx/paraprev.hxx       |    1 +
 svx/source/dialog/paraprev.cxx |    3 +++
 2 files changed, 4 insertions(+)

New commits:
commit c2af4edf5e25a956e30580be86e4ddc090602892
Author: Jim Raykowski <raykowj at gmail.com>
Date:   Sat Oct 21 12:21:44 2017 -0800

    tdf#107643 Fix paragraph preview line spacing
    
    Change-Id: I265f440ed8133d1fd557bed00f766170fffa6cd5
    Reviewed-on: https://gerrit.libreoffice.org/43682
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Yousuf Philips <philipz85 at hotmail.com>
    Tested-by: Yousuf Philips <philipz85 at hotmail.com>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    (cherry picked from commit 4d65adb2fa02645e3c9e946a0b896af51ef27a7d)
    Reviewed-on: https://gerrit.libreoffice.org/43816
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Tested-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

diff --git a/include/svx/paraprev.hxx b/include/svx/paraprev.hxx
index a7ac58eb1f35..6e824baa4967 100644
--- a/include/svx/paraprev.hxx
+++ b/include/svx/paraprev.hxx
@@ -26,6 +26,7 @@
 enum class SvxPrevLineSpace
 {
     N1 = 0,
+    N115,
     N15,
     N2,
     Prop,
diff --git a/svx/source/dialog/paraprev.cxx b/svx/source/dialog/paraprev.cxx
index 4d64c91aebcc..eeba9b1900b7 100644
--- a/svx/source/dialog/paraprev.cxx
+++ b/svx/source/dialog/paraprev.cxx
@@ -120,6 +120,9 @@ void SvxParaPrevWindow::DrawParagraph(vcl::RenderContext& rRenderContext)
             {
                 case SvxPrevLineSpace::N1:
                     break;
+                case SvxPrevLineSpace::N115:
+                    aPnt.Y() += nH / 6.67; // 1/.15 = 6.(6)
+                    break;
                 case SvxPrevLineSpace::N15:
                     aPnt.Y() += nH / 2;
                     break;


More information about the Libreoffice-commits mailing list