mirror of https://github.com/GNOME/gimp.git
parent
6e6ede4456
commit
9ee9939102
|
@ -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 :)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue