From 5447f63bc7c9d0e31d7ba8ead1e1229938be276d Mon Sep 17 00:00:00 2001 From: Prcuvu Date: Wed, 14 Nov 2018 21:56:53 +0800 Subject: [PATCH] fix(tsf): set current page to 0 as page count is always 1 --- WeaselTSF/CandidateList.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WeaselTSF/CandidateList.cpp b/WeaselTSF/CandidateList.cpp index 06b845a5d..550f454e6 100644 --- a/WeaselTSF/CandidateList.cpp +++ b/WeaselTSF/CandidateList.cpp @@ -170,7 +170,7 @@ STDMETHODIMP CCandidateList::SetPageIndex(UINT * pIndex, UINT uPageCnt) STDMETHODIMP CCandidateList::GetCurrentPage(UINT * puPage) { - *puPage = _ui->ctx().cinfo.currentPage; + *puPage = 0; return S_OK; } @@ -234,7 +234,8 @@ void CCandidateList::UpdateUI(const Context & ctx, const Status & status) /// if it is owned by active view window //_UpdateOwner(); _ui->Update(ctx, status); - _UpdateUIElement(); + if (_pbShow == FALSE) + _UpdateUIElement(); if (status.composing) Show(_pbShow);