tomboy r1886 - in trunk: . Tomboy



Author: sharm
Date: Sat Feb 23 01:24:17 2008
New Revision: 1886
URL: http://svn.gnome.org/viewvc/tomboy?rev=1886&view=rev

Log:
* Tomboy/Note.cs: Reverse logic in SetPositionExtent so that note
  location and size information will be saved.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/Note.cs

Modified: trunk/Tomboy/Note.cs
==============================================================================
--- trunk/Tomboy/Note.cs	(original)
+++ trunk/Tomboy/Note.cs	Sat Feb 23 01:24:17 2008
@@ -195,9 +195,9 @@
 
 		public void SetPositionExtent (int x, int y, int width, int height)
 		{
-			if (x >= 0 && y >= 0)
+			if (x < 0 || y < 0)
 				return;
-			if (width > 0 && height > 0)
+			if (width <= 0 || height <= 0)
 				return;
 
 			this.x = x;



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