gimp r26665 - in trunk: . app/core



Author: neo
Date: Tue Aug 19 17:48:33 2008
New Revision: 26665
URL: http://svn.gnome.org/viewvc/gimp?rev=26665&view=rev

Log:
2008-08-19  Sven Neumann  <sven gimp org>

	* app/core/gimpimage-guides.c (gimp_image_find_guide): find 
guides
	outside the image as well. This complements the change that we
	also draw guides outside the image now.



Modified:
   trunk/ChangeLog
   trunk/app/core/gimpimage-guides.c

Modified: trunk/app/core/gimpimage-guides.c
==============================================================================
--- trunk/app/core/gimpimage-guides.c	(original)
+++ trunk/app/core/gimpimage-guides.c	Tue Aug 19 17:48:33 2008
@@ -220,12 +220,6 @@
   g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
   g_return_val_if_fail (epsilon_x > 0 && epsilon_y > 0, NULL);
 
-  if (x < 0 || x >= gimp_image_get_width  (image) ||
-      y < 0 || y >= gimp_image_get_height (image))
-    {
-      return NULL;
-    }
-
   for (list = image->guides; list; list = g_list_next (list))
     {
       gint position;



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