[f-spot] check Selection against Rectangle.Zero



commit 45663878add49c9535ffecae794f9025d4581af0
Author: Stephane Delcroix <stephane delcroix org>
Date:   Tue Jun 23 15:55:08 2009 +0200

    check Selection against Rectangle.Zero
    
    Rectangle != null is always true. So was HasSelection...

 src/Editors/Editor.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Editors/Editor.cs b/src/Editors/Editor.cs
index 6b1d6b8..9542419 100644
--- a/src/Editors/Editor.cs
+++ b/src/Editors/Editor.cs
@@ -42,7 +42,7 @@ namespace FSpot.Editors {
 
 		// Has a portion of the image been selected?
 		public bool HasSelection {
-			get { return Selection != null; }
+			get { return Selection != Rectangle.Zero; }
 		}
 
 		// Is the user in browse mode?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]