Skip to content

Commit

Permalink
Fix a preedit text bug (#64)
Browse files Browse the repository at this point in the history
* The return value of TextInputModel::selection is not a reference

Signed-off-by: Boram Bae <[email protected]>
  • Loading branch information
bbrto21 authored and swift-kim committed Dec 17, 2021
1 parent 23acc00 commit 32f92b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shell/platform/tizen/channels/text_input_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,9 @@ void TextInputChannel::OnPreedit(std::string str, int cursor_pos) {

have_preedit_ = false;
if (edit_status_ == EditStatus::kPreeditStart) {
TextRange selection = active_model_->selection();
preedit_start_pos_ = selection.base();
preedit_start_pos_ = active_model_->selection().base();
active_model_->AddText(str);
preedit_end_pos_ = selection.base();
preedit_end_pos_ = active_model_->selection().base();
have_preedit_ = true;
SendStateUpdate(*active_model_);
FT_LOGD("preedit start pos[%d], preedit end pos[%d]", preedit_start_pos_,
Expand Down

0 comments on commit 32f92b4

Please sign in to comment.