[chronojump] Solved crash if mass == 0
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Solved crash if mass == 0
- Date: Mon, 10 Mar 2014 17:04:13 +0000 (UTC)
commit e82313f07c3f8bfeff25e0509e578883fe51629a
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Mar 10 18:03:42 2014 +0100
Solved crash if mass == 0
src/gui/encoder.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index b728218..1211050 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -4241,7 +4241,10 @@ Log.WriteLine(str);
foreach(double d in data)
if(d < min)
min = d;
-
+
+ if(max == 0)
+ return;
+
int textWidth = 1;
int textHeight = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]