aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------libs/cgeditor0
-rw-r--r--src/game_tab/right_panel/editor/EditorCanvas.cpp4
2 files changed, 1 insertions, 3 deletions
diff --git a/libs/cgeditor b/libs/cgeditor
-Subproject 5ceb3eafc405859f5e588118158cb9e9dbd0048
+Subproject 7d753ae2d82592e09e04e4ecf11df976a2d187f
diff --git a/src/game_tab/right_panel/editor/EditorCanvas.cpp b/src/game_tab/right_panel/editor/EditorCanvas.cpp
index 3120177..a651ba5 100644
--- a/src/game_tab/right_panel/editor/EditorCanvas.cpp
+++ b/src/game_tab/right_panel/editor/EditorCanvas.cpp
@@ -183,13 +183,11 @@ void EditorCanvas::MouseEvent(wxMouseEvent &event) {
void EditorCanvas::SetMoves(HalfMove *moves, HalfMove *current) {
CGEditor::status.Moves = moves;
CGEditor::status.CurrentMove = current;
- Refresh();
// Focus on current move:
if(current!=nullptr){
- Update(); // Wait for preview call to Refresh() to finish (otherwise heisenbugs)
CGEditor::FocusOnMove(current);
- Refresh();
}
+ Refresh();
}
void EditorCanvas::ApplyPreferences(){