[gimp] Get rid of one more local variable in gimp_image_add_layer()
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Get rid of one more local variable in gimp_image_add_layer()
- Date: Tue, 9 Feb 2010 21:41:01 +0000 (UTC)
commit 6b1872359dab912d1bb7007ff8cc9ccdfff1a3df
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 7 23:36:57 2010 +0100
Get rid of one more local variable in gimp_image_add_layer()
app/core/gimpimage.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 93eaeea..9823007 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -3325,7 +3325,6 @@ gimp_image_add_layer (GimpImage *image,
gboolean push_undo)
{
GimpImagePrivate *private;
- GimpLayer *floating_sel;
gboolean old_has_alpha;
g_return_val_if_fail (GIMP_IS_IMAGE (image), FALSE);
@@ -3354,12 +3353,11 @@ gimp_image_add_layer (GimpImage *image,
(GimpItem *) parent,
&position));
- floating_sel = gimp_image_get_floating_selection (image);
-
/* If there is a floating selection (and this isn't it!),
* make sure the insert position is greater than 0
*/
- if (parent == NULL && position == 0 && floating_sel)
+ if (parent == NULL && position == 0 &&
+ gimp_image_get_floating_selection (image))
position = 1;
old_has_alpha = gimp_image_has_alpha (image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]