summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2019-06-04 15:49:12 -0800
committerJim Raykowski <raykowj@gmail.com>2019-07-05 05:52:49 +0200
commit849b837d1a3b185a8dd893a8f6eaed53605bcab1 (patch)
treea4eb438e5c57e9f79044e709638af84091196db7 /svx
parentdca7d930330dff70bf5835d3ae43d598df30f71b (diff)
tdf#83618 Make line spacing values agree
Change-Id: I372a673bbad442d28314498248b12ce7f86fce09 Reviewed-on: https://gerrit.libreoffice.org/73737 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx b/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx
index 7bd655740926..2f582d9d8335 100644
--- a/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx
+++ b/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx
@@ -30,6 +30,8 @@
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
+#include <svl/itempool.hxx>
+
#define DEFAULT_LINE_SPACING 200
#define FIX_DIST_DEF 283
#define LINESPACE_1 100
@@ -125,7 +127,7 @@ void ParaLineSpacingControl::Initialize()
if( eState >= SfxItemState::DEFAULT )
{
- MapUnit eUnit = MapUnit::Map100thMM;
+ MapUnit eUnit = SfxViewFrame::Current()->GetPool().GetMetric( currSPItem->Which() );
meLNSpaceUnit = eUnit;
switch( currSPItem->GetLineSpaceRule() )