adg: correct size in adg_canvas_export()
commit528dffac86312c82cdb992562af5bbec87a396d0
authorNicola Fontana <ntd@entidi.it>
Thu, 26 Feb 2015 19:33:25 +0000 (26 20:33 +0100)
committerNicola Fontana <ntd@entidi.it>
Thu, 26 Feb 2015 19:33:25 +0000 (26 20:33 +0100)
tree16d3fecda54fc63a9b27dbc1cab18146822af350
parentcddf55cfda31dfbce0800b2ebbdc56cf1efc59fd
adg: correct size in adg_canvas_export()

Previously the above function was getting the canvas size through
adg_canvas_get_size(). This is the wrong API because it is used to get the
explicit size (that could possibly be 0), not the real size.

Use the proper API instead, i.e. adg_entity_get_extents().
src/adg/adg-canvas.c