adg: ignore undefined extents in adg_canvas_apply_margins
commitccb3ec26cb74cbd39b381c5a5b86b47b3e56f51a
authorNicola Fontana <ntd@entidi.it>
Tue, 10 Feb 2015 21:04:57 +0000 (10 22:04 +0100)
committerNicola Fontana <ntd@entidi.it>
Tue, 10 Feb 2015 21:04:57 +0000 (10 22:04 +0100)
treec797ef40a74277be8e6008a2ba413bb60dc8bd05
parent36ef83c36bc25d663beb90c118951178f20b5fb0
adg: ignore undefined extents in adg_canvas_apply_margins

Previously the extents were applied regardless of the status of the
is_defined field. Also, added parameter clean-up to avoid crashes with
NULL extents.
src/adg/adg-canvas.c