[Libreoffice-commits] core.git: include/svx svx/source

Jim Raykowski raykowj at gmail.com
Wed Oct 25 09:30:34 UTC 2017


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

New commits:
commit 4d65adb2fa02645e3c9e946a0b896af51ef27a7d
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>

diff --git a/include/svx/paraprev.hxx b/include/svx/paraprev.hxx
index 49c513af7e4c..6c702f88c021 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 5a7bc24c3440..a0e36c087d25 100644
--- a/svx/source/dialog/paraprev.cxx
+++ b/svx/source/dialog/paraprev.cxx
@@ -118,6 +118,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