summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-06-30 21:27:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-01 08:56:44 +0200
commit4637bad647b15892cb954731ad8fd8ff6533a4eb (patch)
treead8f821fd3df1ca770b03639dac3b155e1e921b6 /editeng/source
parent26ae64ae9f1feafac0219de75d6c23b54ceefaae (diff)
call fillDecimal() in SvxTabStop constructor
otherwise we get the weird behaviour where two SvxTabStop instances which are constructed the same, return false from operator== because one instance has had getDecimal() called on it, and the other not. Change-Id: I1f708c1b1e03efcd9fc554eaf2777c4c3e8a80b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169774 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/items/paraitem.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx
index 07a927947bdd..a63f73c25335 100644
--- a/editeng/source/items/paraitem.cxx
+++ b/editeng/source/items/paraitem.cxx
@@ -802,6 +802,7 @@ SvxTabStop::SvxTabStop()
eAdjustment = SvxTabAdjust::Left;
m_cDecimal = cDfltDecimalChar;
cFill = cDfltFillChar;
+ fillDecimal();
}
@@ -812,9 +813,10 @@ SvxTabStop::SvxTabStop( const sal_Int32 nPos, const SvxTabAdjust eAdjst,
eAdjustment = eAdjst;
m_cDecimal = cDec;
cFill = cFil;
+ fillDecimal();
}
-void SvxTabStop::fillDecimal() const
+void SvxTabStop::fillDecimal()
{
if ( cDfltDecimalChar == m_cDecimal )
m_cDecimal = SvtSysLocale().GetLocaleData().getNumDecimalSep()[0];