[longomatch] Forbid negative values for the needle object
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Forbid negative values for the needle object
- Date: Tue, 31 Mar 2015 17:38:42 +0000 (UTC)
commit e8eadd41487851ee9160c9b2ed0a230708818725
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Mar 31 10:50:36 2015 +0200
Forbid negative values for the needle object
LongoMatch.Drawing/CanvasObjects/NeedleObject.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Drawing/CanvasObjects/NeedleObject.cs
b/LongoMatch.Drawing/CanvasObjects/NeedleObject.cs
index 3bc74d2..25befb3 100644
--- a/LongoMatch.Drawing/CanvasObjects/NeedleObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/NeedleObject.cs
@@ -100,7 +100,7 @@ namespace LongoMatch.Drawing.CanvasObjects
public void Move (Selection s, Point p, Point start)
{
if (s.Position == SelectionPosition.All) {
- X = p.X;
+ X = Math.Max (p.X, 0);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]