From 7b9e7e0ea776864da5af98425be8fc6780823b87 Mon Sep 17 00:00:00 2001 From: sdottaka Date: Sat, 20 Jun 2015 16:46:38 +0900 Subject: [PATCH] crystaledit: fix flickering when replacing text --HG-- branch : stable --- Externals/crystaledit/editlib/memcombo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Externals/crystaledit/editlib/memcombo.cpp b/Externals/crystaledit/editlib/memcombo.cpp index d58fc0447..41aeb1cd3 100644 --- a/Externals/crystaledit/editlib/memcombo.cpp +++ b/Externals/crystaledit/editlib/memcombo.cpp @@ -125,6 +125,7 @@ Fill (LPCTSTR text) { if (text && *text) { + int ol = GetCount (); int nPos = FindStringExact (-1, text); if (nPos != CB_ERR) DeleteString (nPos); @@ -132,7 +133,8 @@ Fill (LPCTSTR text) int l = GetCount (); if (l > REMEMBER_COUNT) DeleteString (--l); - SetComboBoxHeight (*this); + if (ol != l) + SetComboBoxHeight (*this); SetComboBoxWidth (*this); SetCurSel (0); if (!m_sGroup.IsEmpty ()) -- 2.11.0