made the creation of guides undoable

--Sven
This commit is contained in:
Sven Neumann 1999-09-20 21:08:53 +00:00
parent 6e6ede4456
commit 9ee9939102
4 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Sep 20 23:06:36 MEST 1999 Sven Neuman <sven@gimp.org>
* app/measure.c: made the creation of guides undoable.
Mon Sep 20 18:58:38 BST 1999 Nick Lamb <njl195@zepler.org>
* plug-ins/common/tiff.c: Mac and PC can be friends :)

View File

@ -27,6 +27,7 @@
#include "info_dialog.h"
#include "measure.h"
#include "tool_options_ui.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
@ -212,6 +213,7 @@ measure_tool_button_press (Tool *tool,
(measure_tool->y[i] == BOUNDS (measure_tool->y[i], 0, gdisp->gimage->height)))
{
guide = gimp_image_add_hguide (gdisp->gimage);
undo_push_guide (gdisp->gimage, guide);
guide->position = measure_tool->y[i];
gdisplays_expose_guide (gdisp->gimage, guide);
}
@ -219,6 +221,7 @@ measure_tool_button_press (Tool *tool,
(measure_tool->x[i] == BOUNDS (measure_tool->x[i], 0, gdisp->gimage->width)))
{
guide = gimp_image_add_vguide (gdisp->gimage);
undo_push_guide (gdisp->gimage, guide);
guide->position = measure_tool->x[i];
gdisplays_expose_guide (gdisp->gimage, guide);
}

View File

@ -27,6 +27,7 @@
#include "info_dialog.h"
#include "measure.h"
#include "tool_options_ui.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
@ -212,6 +213,7 @@ measure_tool_button_press (Tool *tool,
(measure_tool->y[i] == BOUNDS (measure_tool->y[i], 0, gdisp->gimage->height)))
{
guide = gimp_image_add_hguide (gdisp->gimage);
undo_push_guide (gdisp->gimage, guide);
guide->position = measure_tool->y[i];
gdisplays_expose_guide (gdisp->gimage, guide);
}
@ -219,6 +221,7 @@ measure_tool_button_press (Tool *tool,
(measure_tool->x[i] == BOUNDS (measure_tool->x[i], 0, gdisp->gimage->width)))
{
guide = gimp_image_add_vguide (gdisp->gimage);
undo_push_guide (gdisp->gimage, guide);
guide->position = measure_tool->x[i];
gdisplays_expose_guide (gdisp->gimage, guide);
}

View File

@ -27,6 +27,7 @@
#include "info_dialog.h"
#include "measure.h"
#include "tool_options_ui.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "libgimp/gimpmath.h"
@ -212,6 +213,7 @@ measure_tool_button_press (Tool *tool,
(measure_tool->y[i] == BOUNDS (measure_tool->y[i], 0, gdisp->gimage->height)))
{
guide = gimp_image_add_hguide (gdisp->gimage);
undo_push_guide (gdisp->gimage, guide);
guide->position = measure_tool->y[i];
gdisplays_expose_guide (gdisp->gimage, guide);
}
@ -219,6 +221,7 @@ measure_tool_button_press (Tool *tool,
(measure_tool->x[i] == BOUNDS (measure_tool->x[i], 0, gdisp->gimage->width)))
{
guide = gimp_image_add_vguide (gdisp->gimage);
undo_push_guide (gdisp->gimage, guide);
guide->position = measure_tool->x[i];
gdisplays_expose_guide (gdisp->gimage, guide);
}