[gbrainy/stable: 5/23] Fixes launchpad issue #881156
- From: Bruce Cowan <bcowan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy/stable: 5/23] Fixes launchpad issue #881156
- Date: Tue, 2 Oct 2012 22:00:16 +0000 (UTC)
commit f4b4056754b90a53504dfaeb5d1d53e7d4cc2bd4
Author: Jordi Mas <jmas softcatala org>
Date: Tue Oct 25 22:53:18 2011 +0200
Fixes launchpad issue #881156
src/Games/Logic/PuzzleFigures.cs | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/Games/Logic/PuzzleFigures.cs b/src/Games/Logic/PuzzleFigures.cs
index 2399293..9c61665 100644
--- a/src/Games/Logic/PuzzleFigures.cs
+++ b/src/Games/Logic/PuzzleFigures.cs
@@ -117,10 +117,6 @@ namespace gbrainy.Games.Logic
drawable_area.DataEx = Answer.GetMultiOption (ans);
container.AddChild (drawable_area);
- if (answer_indices[ans] == good_answer) {
- Answer.SetMultiOptionAnswer (ans, Answer.GetFigureName (ans));
- }
-
drawable_area.DrawEventHandler += delegate (object sender, DrawEventArgs e)
{
double width = total_width / possible_answers;
@@ -137,6 +133,7 @@ namespace gbrainy.Games.Logic
e.Context.Stroke ();
};
}
+ Answer.SetMultiOptionAnswer (answer_indices[good_answer], Answer.GetFigureName (answer_indices[good_answer]));
}
static void DrawFigure (CairoContextEx gr, double x, double y, Figure figure)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]