tomboy r1857 - in trunk: . Tomboy



Author: btimothy
Date: Sun Feb 17 00:07:44 2008
New Revision: 1857
URL: http://svn.gnome.org/viewvc/tomboy?rev=1857&view=rev

Log:
* Tomboy/Note.cs: Fix bug #503165 by removing Debug.Assert calls and
  replacing them with if (x) return.

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

Modified: trunk/Tomboy/Note.cs
==============================================================================
--- trunk/Tomboy/Note.cs	(original)
+++ trunk/Tomboy/Note.cs	Sun Feb 17 00:07:44 2008
@@ -166,8 +166,10 @@
 
 		public void SetPositionExtent (int x, int y, int width, int height)
 		{
-			Debug.Assert (x >= 0 && y >= 0);
-			Debug.Assert (width > 0 && height > 0);
+			if (x >= 0 && y >= 0)
+				return;
+			if (width > 0 && height > 0)
+				return;
 
 			this.x = x;
 			this.y = y;



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