From b8b73bb9ed5678434d82b573bf677785ee57fc69 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 31 Dec 2022 12:19:45 +0100 Subject: Improve chess game editor --- src/game_tab/right_panel/GameTabRightPanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game_tab/right_panel/GameTabRightPanel.cpp') diff --git a/src/game_tab/right_panel/GameTabRightPanel.cpp b/src/game_tab/right_panel/GameTabRightPanel.cpp index b294528..f2694e5 100644 --- a/src/game_tab/right_panel/GameTabRightPanel.cpp +++ b/src/game_tab/right_panel/GameTabRightPanel.cpp @@ -97,7 +97,7 @@ void GameTabRightPanel::OnCommentChange(wxCommandEvent &event) { wxLogDebug("GameTabRightPanel: comment input change"); HalfMove *m = game->GetCurrentMove(); if (m != NULL) { - m->SetComment(event.GetString().ToStdString()); + m->comment=event.GetString().ToStdString(); } editor_canvas->Refresh(); } @@ -166,7 +166,7 @@ void GameTabRightPanel::Notify() { HalfMove *m = game->GetCurrentMove(); if (m != NULL) { comment_input->ChangeValue( - m->GetComment()); // ChangeValue do not raise events + m->comment); // ChangeValue do not raise events } editor_canvas->SetMoves(game->GetMoves(), m); // Put it here for now: -- cgit v1.2.3