[longomatch/newui: 135/157] Fix exception redrawing before setting positions
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/newui: 135/157] Fix exception redrawing before setting positions
- Date: Mon, 1 Sep 2014 09:52:43 +0000 (UTC)
commit 5c8f23a7eaadced5da3669abdec276a9904457f0
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]