cui/source/tabpages/autocdlg.cxx | 9 ++++----- cui/uiconfig/ui/wordcompletionpage.ui | 2 +- editeng/source/misc/acorrcfg.cxx | 4 ++-- include/editeng/swafopt.hxx | 3 ++- officecfg/registry/schema/org/openoffice/Office/Writer.xcs | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-)
New commits: commit 254161f9dd2b7b3e416c54dfeb8e8c6e81cd7dcd Author: Baole Fang <baole.f...@gmail.com> AuthorDate: Sun Jun 25 22:08:37 2023 -0400 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Jul 4 11:17:10 2023 +0200 tdf#92311: increase word completion limit Change-Id: I0198327d235bdb4048e002aab211e20d1701fa6c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153571 Tested-by: Jenkins Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 378fb68c4143..a23fc2015ebf 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -1981,7 +1981,6 @@ bool OfaAutoCompleteTabPage::FillItemSet( SfxItemSet* ) bool bModified = false, bCheck; SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect(); SvxSwAutoFormatFlags *pOpt = &pAutoCorrect->GetSwFlags(); - sal_uInt16 nVal; bCheck = m_xCBActiv->get_active(); bModified |= pOpt->bAutoCompleteWords != bCheck; @@ -1999,13 +1998,13 @@ bool OfaAutoCompleteTabPage::FillItemSet( SfxItemSet* ) bModified |= pOpt->bAutoCmpltShowAsTip != bCheck; pOpt->bAutoCmpltShowAsTip = bCheck; - nVal = static_cast<sal_uInt16>(m_xNFMinWordlen->get_value()); + sal_uInt16 nVal = static_cast<sal_uInt16>(m_xNFMinWordlen->get_value()); bModified |= nVal != pOpt->nAutoCmpltWordLen; pOpt->nAutoCmpltWordLen = nVal; - nVal = static_cast<sal_uInt16>(m_xNFMaxEntries->get_value()); - bModified |= nVal != pOpt->nAutoCmpltListLen; - pOpt->nAutoCmpltListLen = nVal; + sal_uInt32 nList = static_cast<sal_uInt32>(m_xNFMaxEntries->get_value()); + bModified |= nList != pOpt->nAutoCmpltListLen; + pOpt->nAutoCmpltListLen = nList; const int nPos = m_xDCBExpandKey->get_active(); if (nPos != -1) diff --git a/cui/uiconfig/ui/wordcompletionpage.ui b/cui/uiconfig/ui/wordcompletionpage.ui index d77e2c4f81d3..1b7004ee2d49 100644 --- a/cui/uiconfig/ui/wordcompletionpage.ui +++ b/cui/uiconfig/ui/wordcompletionpage.ui @@ -4,7 +4,7 @@ <requires lib="gtk+" version="3.20"/> <object class="GtkAdjustment" id="adjustment1"> <property name="lower">50</property> - <property name="upper">65535</property> + <property name="upper">4294967295</property> <property name="value">500</property> <property name="step_increment">25</property> <property name="page_increment">100</property> diff --git a/editeng/source/misc/acorrcfg.cxx b/editeng/source/misc/acorrcfg.cxx index 8603b4347da1..4ff15f1bfc2d 100644 --- a/editeng/source/misc/acorrcfg.cxx +++ b/editeng/source/misc/acorrcfg.cxx @@ -524,9 +524,9 @@ void SvxSwAutoCorrCfg::Load(bool bInit) break; // "Completion/MinWordLen", case 35: { - sal_Int32 nVal = 0; pValues[nProp] >>= nVal; + sal_Int64 nVal = 0; pValues[nProp] >>= nVal; rSwFlags.nAutoCmpltListLen = - sal::static_int_cast< sal_uInt16 >(nVal); + sal::static_int_cast< sal_uInt32 >(nVal); } break; // "Completion/MaxListLen", case 36: rSwFlags.bAutoCmpltCollectWords = *o3tl::doAccess<bool>(pValues[nProp]); break; // "Completion/CollectWords", diff --git a/include/editeng/swafopt.hxx b/include/editeng/swafopt.hxx index 71919383da96..8a4ca5aeaa62 100644 --- a/include/editeng/swafopt.hxx +++ b/include/editeng/swafopt.hxx @@ -86,7 +86,8 @@ struct EDITENG_DLLPUBLIC SvxSwAutoFormatFlags sal_UCS4 cBullet; sal_UCS4 cByInputBullet; - sal_uInt16 nAutoCmpltWordLen, nAutoCmpltListLen; + sal_uInt32 nAutoCmpltListLen; + sal_uInt16 nAutoCmpltWordLen; sal_uInt16 nAutoCmpltExpandKey; sal_uInt8 nRightMargin; diff --git a/officecfg/registry/schema/org/openoffice/Office/Writer.xcs b/officecfg/registry/schema/org/openoffice/Office/Writer.xcs index 0f684bb2eea9..dd880f51cfa4 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Writer.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Writer.xcs @@ -4464,7 +4464,7 @@ </info> <value>8</value> </prop> - <prop oor:name="MaxListLen" oor:type="xs:int" oor:nillable="false"> + <prop oor:name="MaxListLen" oor:type="xs:long" oor:nillable="false"> <!-- UIHints: Tools AutoCorrect/AutoFormat WordCompletion max. entries --> <info> <desc>Sets the maximum number of words to be recalled.</desc>