gimp r26274 - in trunk: . app/tools
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26274 - in trunk: . app/tools
- Date: Tue, 22 Jul 2008 11:12:16 +0000 (UTC)
Author: neo
Date: Tue Jul 22 11:12:16 2008
New Revision: 26274
URL: http://svn.gnome.org/viewvc/gimp?rev=26274&view=rev
Log:
2008-07-22 Sven Neumann <sven gimp org>
* app/tools/gimpvectortool.c: formatting
Modified:
trunk/ChangeLog
trunk/app/tools/gimpvectortool.c
Modified: trunk/app/tools/gimpvectortool.c
==============================================================================
--- trunk/app/tools/gimpvectortool.c (original)
+++ trunk/app/tools/gimpvectortool.c Tue Jul 22 11:12:16 2008
@@ -286,6 +286,7 @@
gimp_vector_tool_set_vectors (vector_tool, vectors);
gimp_image_set_active_vectors (display->image, vectors);
}
+
vector_tool->function = VECTORS_FINISHED;
}
@@ -306,7 +307,6 @@
gimp_vector_tool_set_vectors (vector_tool, vectors);
vector_tool->function = VECTORS_CREATE_STROKE;
-
}
gimp_vectors_freeze (vector_tool->vectors);
@@ -346,10 +346,11 @@
vector_tool->restriction = GIMP_ANCHOR_FEATURE_SYMMETRIC;
- if (!options->polygonal)
+ if (! options->polygonal)
vector_tool->function = VECTORS_MOVE_HANDLE;
else
vector_tool->function = VECTORS_MOVE_ANCHOR;
+
vector_tool->cur_stroke = vector_tool->sel_stroke;
}
@@ -374,6 +375,7 @@
vector_tool->cur_anchor,
GIMP_ANCHOR_FEATURE_EDGE);
}
+
vector_tool->function = VECTORS_MOVE_ANCHOR;
}
else
@@ -391,7 +393,7 @@
if (vector_tool->cur_anchor->type == GIMP_ANCHOR_ANCHOR)
{
- if (!vector_tool->cur_anchor->selected)
+ if (! vector_tool->cur_anchor->selected)
{
gimp_vectors_anchor_select (vector_tool->vectors,
vector_tool->cur_stroke,
@@ -406,7 +408,7 @@
GIMP_ANCHOR_CONTROL, TRUE,
&vector_tool->cur_anchor,
&vector_tool->cur_stroke);
- if (!vector_tool->cur_anchor)
+ if (! vector_tool->cur_anchor)
vector_tool->function = VECTORS_FINISHED;
}
}
@@ -418,7 +420,7 @@
{
gimp_vector_tool_undo_push (vector_tool, _("Drag Anchor"));
- if (!vector_tool->cur_anchor->selected)
+ if (! vector_tool->cur_anchor->selected)
{
gimp_vectors_anchor_select (vector_tool->vectors,
vector_tool->cur_stroke,
@@ -442,7 +444,9 @@
vector_tool->cur_anchor,
!vector_tool->cur_anchor->selected,
FALSE);
+
vector_tool->undo_motion = TRUE;
+
if (vector_tool->cur_anchor->selected == FALSE)
vector_tool->function = VECTORS_FINISHED;
}
@@ -495,6 +499,7 @@
gimp_vectors_stroke_remove (vector_tool->vectors,
vector_tool->cur_stroke);
}
+
vector_tool->sel_anchor = vector_tool->cur_anchor;
vector_tool->cur_stroke = vector_tool->sel_stroke;
@@ -977,6 +982,7 @@
else
{
vector_tool->function = VECTORS_MOVE_HANDLE;
+
if (state & TOGGLE_MASK)
vector_tool->restriction = GIMP_ANCHOR_FEATURE_SYMMETRIC;
else
@@ -988,6 +994,7 @@
if (gimp_stroke_point_is_movable (stroke, anchor, position))
{
vector_tool->function = VECTORS_MOVE_CURVE;
+
if (state & TOGGLE_MASK)
vector_tool->restriction = GIMP_ANCHOR_FEATURE_SYMMETRIC;
else
@@ -1780,7 +1787,7 @@
vector_tool->sel_anchor = NULL;
vector_tool->sel_stroke = NULL;
- if (!vector_tool->vectors)
+ if (! vector_tool->vectors)
{
vector_tool->cur_position = -1;
vector_tool->cur_anchor = NULL;
@@ -1832,10 +1839,10 @@
}
}
- if (!cur_stroke_valid)
+ if (! cur_stroke_valid)
vector_tool->cur_stroke = NULL;
- if (!cur_anchor_valid)
+ if (! cur_anchor_valid)
vector_tool->cur_anchor = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]