diff options
author | Jim Raykowski <raykowj@gmail.com> | 2019-06-04 15:49:12 -0800 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2019-10-08 11:19:53 +0200 |
commit | fe3c08b5905a837cb63f57cefc8e43787c96b9c6 (patch) | |
tree | e844d20cb66910c4f7fd768d66794972c051d9c3 /svx | |
parent | ea3a53adcb39b55fa1793136a3c579d774bc1354 (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>
(cherry picked from commit 849b837d1a3b185a8dd893a8f6eaed53605bcab1)
Reviewed-on: https://gerrit.libreoffice.org/80314
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx | 4 |
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() ) |