summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{