[f-spot: 36/40] check Selection against Rectangle.Zero
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 36/40] check Selection against Rectangle.Zero
- Date: Wed, 24 Jun 2009 09:50:43 +0000 (UTC)
commit aab6748852d8ed787a3ed5d41c9b397fc9a65674
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 f2d3d65..3fe9d63 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]