gimp r27460 - in trunk: . app/core
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27460 - in trunk: . app/core
- Date: Wed, 29 Oct 2008 19:17:30 +0000 (UTC)
Author: neo
Date: Wed Oct 29 19:17:30 2008
New Revision: 27460
URL: http://svn.gnome.org/viewvc/gimp?rev=27460&view=rev
Log:
2008-10-29 Sven Neumann <sven gimp org>
Bug 558420 â projection incorrect with alpha-less layers
* app/core/gimpprojection-construct.c
(gimp_projection_initialize):
need to initialize the projection if the covering layer is not
opaque.
Modified:
trunk/ChangeLog
trunk/app/core/gimpprojection-construct.c
Modified: trunk/app/core/gimpprojection-construct.c
==============================================================================
--- trunk/app/core/gimpprojection-construct.c (original)
+++ trunk/app/core/gimpprojection-construct.c Wed Oct 29 19:17:30 2008
@@ -396,13 +396,14 @@
gimp_item_offsets (item, &off_x, &off_y);
- if (gimp_item_get_visible (item) &&
- ! gimp_drawable_has_alpha (GIMP_DRAWABLE (item)) &&
- ! gimp_layer_get_mask (GIMP_LAYER (item)) &&
- gimp_layer_get_mode (GIMP_LAYER (item)) == GIMP_NORMAL_MODE &&
- (off_x <= x) &&
- (off_y <= y) &&
- (off_x + gimp_item_width (item) >= x + w) &&
+ if (gimp_item_get_visible (item) &&
+ ! gimp_drawable_has_alpha (GIMP_DRAWABLE (item)) &&
+ ! gimp_layer_get_mask (GIMP_LAYER (item)) &&
+ gimp_layer_get_mode (GIMP_LAYER (item)) == GIMP_NORMAL_MODE &&
+ gimp_layer_get_opacity (GIMP_LAYER (item)) == GIMP_OPACITY_OPAQUE &&
+ (off_x <= x) &&
+ (off_y <= y) &&
+ (off_x + gimp_item_width (item) >= x + w) &&
(off_y + gimp_item_height (item) >= y + h))
{
coverage = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]