[gnome-klotski] Fix a bug.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski] Fix a bug.
- Date: Sat, 8 Feb 2020 19:28:49 +0000 (UTC)
commit 71a635b2b0f849679a9bd1cb63b9e358fb35a11c
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Feb 8 19:28:18 2020 +0100
Fix a bug.
Loading a puzzle was not clearing
completely the view state, so the
first move done may be uncounted.
src/puzzle-view.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/puzzle-view.vala b/src/puzzle-view.vala
index 7c300b5..45bb9fa 100644
--- a/src/puzzle-view.vala
+++ b/src/puzzle-view.vala
@@ -60,7 +60,9 @@ private class PuzzleView : Gtk.DrawingArea
_puzzle.changed.connect (puzzle_changed_cb);
piece_x = 0;
piece_y = 0;
+ piece_unmoved = false;
piece_id = '\0';
+ last_piece_id = '\0';
queue_draw ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]