use a simple cast, not a type-checking one

svn path=/trunk/; revision=22390
This commit is contained in:
Sven Neumann 2007-05-03 15:18:53 +00:00
parent 6c427acf21
commit 2cb0739be5
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ gimp_layer_mask_undo_set_property (GObject *object,
switch (property_id)
{
case PROP_LAYER_MASK:
layer_mask_undo->layer_mask = GIMP_LAYER_MASK (g_value_dup_object (value));
layer_mask_undo->layer_mask = (GimpLayerMask *) g_value_dup_object (value);
break;
default: