[longomatch] Fix exception redrawing before setting positions
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix exception redrawing before setting positions
- Date: Wed, 24 Sep 2014 20:18:44 +0000 (UTC)
commit 7bd9a481cc893fc80d45f5d9aa5d697c6cf3a7f8
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Aug 29 14:32:23 2014 +0200
Fix exception redrawing before setting positions
LongoMatch.Drawing/CanvasObjects/BenchObject.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Drawing/CanvasObjects/BenchObject.cs b/LongoMatch.Drawing/CanvasObjects/BenchObject.cs
index 323fa99..832bfc1 100644
--- a/LongoMatch.Drawing/CanvasObjects/BenchObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/BenchObject.cs
@@ -86,7 +86,7 @@ namespace LongoMatch.Drawing.CanvasObjects
public override void Draw (IDrawingToolkit tk, Area area)
{
- if (BenchPlayers == null) {
+ if (BenchPlayers == null || Position == null) {
return;
}
tk.Begin ();
@@ -111,7 +111,7 @@ namespace LongoMatch.Drawing.CanvasObjects
{
Selection selection = null;
- if (BenchPlayers == null) {
+ if (BenchPlayers == null || Position == null) {
return selection;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]