summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-09-29 00:28:20 +0200
committerLászló Németh <nemeth@numbertext.org>2019-10-01 11:30:27 +0200
commit32e781d268e59397016f7243fc92d5408577d593 (patch)
treee51e85c443d972d58802f125389060d35d507e5e /sw
parent6027ec08fd5df2e09e34ff61b3777ad2cc8304b3 (diff)
tdf#92845 Save Writer - Comparison settings properly
Options - Writer - Comparison -> 'Compare Documents' and 'Ignore pieces of lenght <value>' were not retained between runs of Writer. The type of these settings are defined in officecfg/registry/schema/org/openoffice/Office/Writer.xcs as follows: <prop oor:name="Mode" oor:type="xs:short"> <prop oor:name="IgnoreLength" oor:type="xs:short"> Casting the setting values to sal_Int32 did not work, because sal_Int16 maps to short. This makes the following warning (2 instances displayed when closing the Options window) go away in my local debug build and the values retained: warn:unotools.config:30387:30387:unotools/source/config/configitem.cxx:483: Exception from PutProperties com.sun.star.lang.IllegalArgumentException message: configmgr inappropriate property value context: configmgr::ChildAccess ArgumentPosition: -1 Change-Id: I59fea65378a5dfb2b6f25b9c9eaf08817862587d Reviewed-on: https://gerrit.libreoffice.org/79807 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/config/modcfg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/config/modcfg.cxx b/sw/source/uibase/config/modcfg.cxx
index 3a5c34ab8515..006ad51069a2 100644
--- a/sw/source/uibase/config/modcfg.cxx
+++ b/sw/source/uibase/config/modcfg.cxx
@@ -1291,10 +1291,10 @@ void SwCompareConfig::ImplCommit()
Sequence<Any> aValues(aNames.getLength());
Any* pValues = aValues.getArray();
- pValues[0] <<= static_cast<sal_Int32>(m_eCmpMode);
+ pValues[0] <<= static_cast<sal_Int16>(m_eCmpMode);
pValues[1] <<= m_bUseRsid;
pValues[2] <<= m_bIgnorePieces;
- pValues[3] <<= static_cast<sal_Int32>(m_nPieceLen);
+ pValues[3] <<= static_cast<sal_Int16>(m_nPieceLen);
pValues[4] <<= m_bStoreRsid;
PutProperties(aNames, aValues);