From 849b837d1a3b185a8dd893a8f6eaed53605bcab1 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Tue, 4 Jun 2019 15:49:12 -0800 Subject: tdf#83618 Make line spacing values agree Change-Id: I372a673bbad442d28314498248b12ce7f86fce09 Reviewed-on: https://gerrit.libreoffice.org/73737 Tested-by: Jenkins Reviewed-by: Jim Raykowski --- cui/source/tabpages/paragrph.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cui/source') diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 9c9bca1963c8..67e1817b1c0e 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -54,6 +54,8 @@ #include #include +#include + const sal_uInt16 SvxStdParagraphTabPage::pStdRanges[] = { SID_ATTR_PARA_LINESPACE, // 10033 @@ -228,7 +230,7 @@ bool SvxStdParagraphTabPage::FillItemSet( SfxItemSet* rOutSet ) m_xLineDistAtMetricBox->get_value_changed_from_saved() ) ) { nWhich = GetWhich( SID_ATTR_PARA_LINESPACE ); - MapUnit eUnit = pPool->GetMetric( nWhich ); + MapUnit eUnit = SfxViewFrame::Current()->GetPool().GetMetric( nWhich ); SvxLineSpacingItem aSpacing( static_cast(GetItemSet().Get( nWhich )) ); @@ -719,7 +721,7 @@ void SvxStdParagraphTabPage::SetLineSpacing_Impl const SvxLineSpacingItem &rAttr ) { - MapUnit eUnit = GetItemSet().GetPool()->GetMetric( rAttr.Which() ); + MapUnit eUnit = SfxViewFrame::Current()->GetPool().GetMetric( rAttr.Which() ); switch( rAttr.GetLineSpaceRule() ) { -- cgit