Commit eeca444b authored by Adam D. Moss's avatar Adam D. Moss
Browse files

I'm pleased to say that lewing doesn't want to kill me any more. Hooray!


	* app/gimpimage.c: I'm pleased to say that lewing doesn't
	want to kill me any more.  Hooray!
parent b164ee79
Mon Aug 31 19:16:36 BST 1998 Adam D. Moss <adam@gimp.org>
* app/gimpimage.c: I'm pleased to say that lewing doesn't
want to kill me any more. Hooray!
Mon Aug 31 18:15:16 BST 1998 Adam D. Moss <adam@gimp.org>
* app/gimage.h app/gimpimage.c app/gimpimage.h
......
......@@ -1018,7 +1018,8 @@ gimp_image_delete_guide_invoker (Argument *args)
guides = gimage->guides;
while (guides)
{
if (((Guide*)guides->data)->guide_ID == guide_id)
if ((((Guide*)guides->data)->guide_ID == guide_id) &&
(((Guide*)guides->data)->position >= 0) )
{
GList *tmp_next;
......@@ -1027,7 +1028,9 @@ gimp_image_delete_guide_invoker (Argument *args)
tmp_next = g_list_next(guides);
gimp_image_remove_guide (gimage, ((Guide*)guides->data));
((Guide*)guides->data)->position = -1;
undo_push_guide (gimage, ((Guide*)guides->data));
/*gimp_image_remove_guide (gimage, ((Guide*)guides->data));*/
guides = tmp_next;
}
......
......@@ -1018,7 +1018,8 @@ gimp_image_delete_guide_invoker (Argument *args)
guides = gimage->guides;
while (guides)
{
if (((Guide*)guides->data)->guide_ID == guide_id)
if ((((Guide*)guides->data)->guide_ID == guide_id) &&
(((Guide*)guides->data)->position >= 0) )
{
GList *tmp_next;
......@@ -1027,7 +1028,9 @@ gimp_image_delete_guide_invoker (Argument *args)
tmp_next = g_list_next(guides);
gimp_image_remove_guide (gimage, ((Guide*)guides->data));
((Guide*)guides->data)->position = -1;
undo_push_guide (gimage, ((Guide*)guides->data));
/*gimp_image_remove_guide (gimage, ((Guide*)guides->data));*/
guides = tmp_next;
}
......
......@@ -1018,7 +1018,8 @@ gimp_image_delete_guide_invoker (Argument *args)
guides = gimage->guides;
while (guides)
{
if (((Guide*)guides->data)->guide_ID == guide_id)
if ((((Guide*)guides->data)->guide_ID == guide_id) &&
(((Guide*)guides->data)->position >= 0) )
{
GList *tmp_next;
......@@ -1027,7 +1028,9 @@ gimp_image_delete_guide_invoker (Argument *args)
tmp_next = g_list_next(guides);
gimp_image_remove_guide (gimage, ((Guide*)guides->data));
((Guide*)guides->data)->position = -1;
undo_push_guide (gimage, ((Guide*)guides->data));
/*gimp_image_remove_guide (gimage, ((Guide*)guides->data));*/
guides = tmp_next;
}
......
......@@ -1018,7 +1018,8 @@ gimp_image_delete_guide_invoker (Argument *args)
guides = gimage->guides;
while (guides)
{
if (((Guide*)guides->data)->guide_ID == guide_id)
if ((((Guide*)guides->data)->guide_ID == guide_id) &&
(((Guide*)guides->data)->position >= 0) )
{
GList *tmp_next;
......@@ -1027,7 +1028,9 @@ gimp_image_delete_guide_invoker (Argument *args)
tmp_next = g_list_next(guides);
gimp_image_remove_guide (gimage, ((Guide*)guides->data));
((Guide*)guides->data)->position = -1;
undo_push_guide (gimage, ((Guide*)guides->data));
/*gimp_image_remove_guide (gimage, ((Guide*)guides->data));*/
guides = tmp_next;
}
......
......@@ -1018,7 +1018,8 @@ gimp_image_delete_guide_invoker (Argument *args)
guides = gimage->guides;
while (guides)
{
if (((Guide*)guides->data)->guide_ID == guide_id)
if ((((Guide*)guides->data)->guide_ID == guide_id) &&
(((Guide*)guides->data)->position >= 0) )
{
GList *tmp_next;
......@@ -1027,7 +1028,9 @@ gimp_image_delete_guide_invoker (Argument *args)
tmp_next = g_list_next(guides);
gimp_image_remove_guide (gimage, ((Guide*)guides->data));
((Guide*)guides->data)->position = -1;
undo_push_guide (gimage, ((Guide*)guides->data));
/*gimp_image_remove_guide (gimage, ((Guide*)guides->data));*/
guides = tmp_next;
}
......
......@@ -1018,7 +1018,8 @@ gimp_image_delete_guide_invoker (Argument *args)
guides = gimage->guides;
while (guides)
{
if (((Guide*)guides->data)->guide_ID == guide_id)
if ((((Guide*)guides->data)->guide_ID == guide_id) &&
(((Guide*)guides->data)->position >= 0) )
{
GList *tmp_next;
......@@ -1027,7 +1028,9 @@ gimp_image_delete_guide_invoker (Argument *args)
tmp_next = g_list_next(guides);
gimp_image_remove_guide (gimage, ((Guide*)guides->data));
((Guide*)guides->data)->position = -1;
undo_push_guide (gimage, ((Guide*)guides->data));
/*gimp_image_remove_guide (gimage, ((Guide*)guides->data));*/
guides = tmp_next;
}
......
......@@ -1018,7 +1018,8 @@ gimp_image_delete_guide_invoker (Argument *args)
guides = gimage->guides;
while (guides)
{
if (((Guide*)guides->data)->guide_ID == guide_id)
if ((((Guide*)guides->data)->guide_ID == guide_id) &&
(((Guide*)guides->data)->position >= 0) )
{
GList *tmp_next;
......@@ -1027,7 +1028,9 @@ gimp_image_delete_guide_invoker (Argument *args)
tmp_next = g_list_next(guides);
gimp_image_remove_guide (gimage, ((Guide*)guides->data));
((Guide*)guides->data)->position = -1;
undo_push_guide (gimage, ((Guide*)guides->data));
/*gimp_image_remove_guide (gimage, ((Guide*)guides->data));*/
guides = tmp_next;
}
......
......@@ -1018,7 +1018,8 @@ gimp_image_delete_guide_invoker (Argument *args)
guides = gimage->guides;
while (guides)
{
if (((Guide*)guides->data)->guide_ID == guide_id)
if ((((Guide*)guides->data)->guide_ID == guide_id) &&
(((Guide*)guides->data)->position >= 0) )
{
GList *tmp_next;
......@@ -1027,7 +1028,9 @@ gimp_image_delete_guide_invoker (Argument *args)
tmp_next = g_list_next(guides);
gimp_image_remove_guide (gimage, ((Guide*)guides->data));
((Guide*)guides->data)->position = -1;
undo_push_guide (gimage, ((Guide*)guides->data));
/*gimp_image_remove_guide (gimage, ((Guide*)guides->data));*/
guides = tmp_next;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment