[gimp] Revert "app: make unattached vectors enable to rotate."
- From: ONO Yoshio <onoyoshio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Revert "app: make unattached vectors enable to rotate."
- Date: Wed, 12 Sep 2018 11:54:44 +0000 (UTC)
commit 1ff9487d0051c43e4e4e9e8d19924993d12f4630
Author: ONO Yoshio <ohtsuka yoshio gmail com>
Date: Thu Sep 6 07:34:54 2018 +0900
Revert "app: make unattached vectors enable to rotate."
This reverts commit 2d415f53bf582b9cfabe049fd3d95a274b3e39e9.
app/core/gimpitem.c | 1 +
app/vectors/gimpvectors.c | 7 +++----
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c
index 688daebeea..363ee52eec 100644
--- a/app/core/gimpitem.c
+++ b/app/core/gimpitem.c
@@ -1663,6 +1663,7 @@ gimp_item_rotate (GimpItem *item,
gboolean push_undo;
g_return_if_fail (GIMP_IS_ITEM (item));
+ g_return_if_fail (gimp_item_is_attached (item));
g_return_if_fail (GIMP_IS_CONTEXT (context));
item_class = GIMP_ITEM_GET_CLASS (item);
diff --git a/app/vectors/gimpvectors.c b/app/vectors/gimpvectors.c
index 458d102114..e9fe9d25ae 100644
--- a/app/vectors/gimpvectors.c
+++ b/app/vectors/gimpvectors.c
@@ -582,10 +582,9 @@ gimp_vectors_rotate (GimpItem *item,
gimp_vectors_freeze (vectors);
- if (gimp_item_is_attached (item))
- gimp_image_undo_push_vectors_mod (gimp_item_get_image (item),
- _("Rotate Path"),
- vectors);
+ gimp_image_undo_push_vectors_mod (gimp_item_get_image (item),
+ _("Rotate Path"),
+ vectors);
for (list = vectors->strokes->head; list; list = g_list_next (list))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]