[gnome-games] quadrapassel: Fix crash starting with 'show blocks' feature
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] quadrapassel: Fix crash starting with 'show blocks' feature
- Date: Mon, 6 Feb 2012 08:49:33 +0000 (UTC)
commit 8fb495dc66b074f7f2c4f88b7e914f81be8fa3b7
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Feb 6 19:49:21 2012 +1100
quadrapassel: Fix crash starting with 'show blocks' feature
quadrapassel/src/game-view.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/quadrapassel/src/game-view.vala b/quadrapassel/src/game-view.vala
index 0ae2ee6..81a96ff 100644
--- a/quadrapassel/src/game-view.vala
+++ b/quadrapassel/src/game-view.vala
@@ -160,7 +160,7 @@ public class GameView : GtkClutter.Embed
private void update_shadow ()
{
- if (show_shadow)
+ if (game != null && show_shadow)
{
if (shape_shadow == null)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]