summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-14 14:35:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-14 17:50:51 +0100
commit2339b36033695f2b79997702770698f5db3ec4af (patch)
treed7cdb493625c8c3d08f74988fea6dfec7a9cc5ee
parentb7fd89100d8653dc73955780358fe31d38b68ebf (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/+/88718 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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 9e00183209e3..0e42e8d5cc34 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -686,6 +686,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));
@@ -697,7 +699,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)
{