aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/right_panel/GameTabRightPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/right_panel/GameTabRightPanel.cpp')
-rw-r--r--src/game_tab/right_panel/GameTabRightPanel.cpp4
1 files changed, 2 insertions, 2 deletions
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: