summaryrefslogtreecommitdiffstats
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-25 09:35:50 +0100
commit91e8ee86d499b759aa6639368a40528482e49fb6 (patch)
tree6bcf28b258a6aa5f879c5dc3026f5a3d59ae97ce /cui
parentResolves: tdf#129446 explicitly pass the mouse event window (diff)
downloadcore-91e8ee86d499b759aa6639368a40528482e49fb6.tar.gz
core-91e8ee86d499b759aa6639368a40528482e49fb6.zip
Resolves: tdf#130658 there isn't a second column in non-exception mode
Change-Id: I35edf263251c087976aa9a2506bb23c083e1f7c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88693 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 ab4711eb1a2f..ff6c597f1fe4 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -677,6 +677,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));
@@ -688,7 +690,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)
{