[AdgLineStyle] Added guard against invalid properties where possible
commitb47f073c08004bf52d89ae8af59290d7dc249a65
authorNicola Fontana <ntd@entidi.it>
Sun, 14 Mar 2010 13:43:28 +0000 (14 14:43 +0100)
committerNicola Fontana <ntd@entidi.it>
Sun, 14 Mar 2010 13:43:28 +0000 (14 14:43 +0100)
treef729ed13f276b7db93fa820714ff6abdfb49d694
parentc3f9eb5919509b45349a50ed59ed70cda36ac99b
[AdgLineStyle] Added guard against invalid properties where possible

Check "width" and "miter-limit" values are greather or equal than 0
before accepting them.

The enum properties, instead, are provided by cairo and there is no way
to check for invalid values other than hardcode the current values
inside the ADG project. This would disallow the use of new values
introduced by future cairo releases, hence not an acceptable solution.
Bottom line: values needed by cairo enum properties are passed as is.
adg/adg-line-style.c