[longomatch] Do not show drawing if the CurrentFrame is null
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Do not show drawing if the CurrentFrame is null
- Date: Sat, 22 Nov 2014 10:55:37 +0000 (UTC)
commit e6b2e3eb0d2dda9ca1ecc288d606b43c6af3f0b4
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Nov 21 14:33:37 2014 +0100
Do not show drawing if the CurrentFrame is null
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index 183cd2e..c96818e 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -522,6 +522,9 @@ namespace LongoMatch.Gui
void LoadImage (Image image, FrameDrawing drawing)
{
+ if (image == null) {
+ return;
+ }
blackboard.Background = image;
blackboard.Drawing = drawing;
DrawingsVisible = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]