Skip to content

Commit

Permalink
fix(tsf): set current page to 0 as page count is always 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Prcuvu committed Nov 14, 2018
1 parent ae87691 commit 5447f63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions WeaselTSF/CandidateList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5447f63

Please sign in to comment.