summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-14 14:35:11 +0000
committerXisco Faulí <xiscofauli@libreoffice.org>2020-02-15 11:42:39 +0100
commit069895a8961b474961b287e3139e4c4c042ad845 (patch)
tree4fc82b0ee7d25a7020344faabf206547388cb4ee /cui
parentb3e302b98dd7b992b7aa5a7f6756980d3edafc83 (diff)
Resolves: tdf#130658 there isn't a second column in non-exception mode
Change-Id: I35edf263251c087976aa9a2506bb23c083e1f7c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88688 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optdict.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index 07080a75184a..da3741a71fd5 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -682,6 +682,8 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, weld::Entry&, rEdt, void)
bool bTmpSelEntry=false;
CDE_RESULT eCmpRes = CDE_DIFFERENT;
+ bool bDoubleColumn = m_pWordsLB == m_xDoubleColumnLB.get();
+
for (int i = 0, nCount = m_pWordsLB->n_children(); i < nCount; ++i)
{
OUString aTestStr(m_pWordsLB->get_text(i, 0));
@@ -693,7 +695,8 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, weld::Entry&, rEdt, void)
bDoNothing=true;
m_pWordsLB->set_cursor(i);
bDoNothing=false;
- m_xReplaceED->set_text(m_pWordsLB->get_text(i, 1));
+ if (bDoubleColumn)
+ m_xReplaceED->set_text(m_pWordsLB->get_text(i, 1));
if (CDE_SIMILAR == eCmpRes)
{