[Libreoffice-commits] core.git: sw/source
heiko tietze
tietze.heiko at gmail.com
Tue Oct 31 09:36:30 UTC 2017
sw/source/ui/frmdlg/column.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 420452e56c2f18b85e6a59dbba80c06d96e28abd
Author: heiko tietze <tietze.heiko at gmail.com>
Date: Fri Oct 27 20:36:10 2017 +0200
tdf#67670 Change default column spacing to 0.5cm
Change-Id: I12cf2abb5ed415425e0ee83bc92542ad74cb787c
Reviewed-on: https://gerrit.libreoffice.org/43964
Reviewed-by: Heiko Tietze <tietze.heiko at googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko at googlemail.com>
diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx
index e188e3a2a345..db28e793044a 100644
--- a/sw/source/ui/frmdlg/column.cxx
+++ b/sw/source/ui/frmdlg/column.cxx
@@ -583,6 +583,9 @@ void SwColumnPage::Reset(const SfxItemSet *rSet)
m_aEd3.SetMetric(aMetric);
m_aDistEd1.SetMetric(aMetric);
m_aDistEd2.SetMetric(aMetric);
+ //default spacing between cols = 0.5cm
+ m_aDistEd1.SetPrcntValue(50, FUNIT_CM);
+ m_aDistEd2.SetPrcntValue(50, FUNIT_CM);
delete m_pColMgr;
m_pColMgr = new SwColMgr(*rSet);
@@ -1315,7 +1318,7 @@ IMPL_LINK( SwColumnPage, SetDefaultsHdl, ValueSet *, pVS, void )
{
m_pCLNrEdt->SetValue( nItem );
m_pAutoWidthBox->Check();
- m_aDistEd1.SetPrcntValue(0);
+ m_aDistEd1.SetPrcntValue(50, FUNIT_CM);
ColModify(nullptr);
}
else
@@ -1323,7 +1326,7 @@ IMPL_LINK( SwColumnPage, SetDefaultsHdl, ValueSet *, pVS, void )
m_bLockUpdate = true;
m_pCLNrEdt->SetValue( 2 );
m_pAutoWidthBox->Check(false);
- m_aDistEd1.SetPrcntValue(0);
+ m_aDistEd1.SetPrcntValue(50, FUNIT_CM);
ColModify(nullptr);
// now set the width ratio to 2 : 1 or 1 : 2 respectively
const long nSmall = static_cast< long >(m_pColMgr->GetActualSize() / 3);
More information about the Libreoffice-commits
mailing list