diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-09-15 00:43:49 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-09-15 00:43:49 +0000 |
| commit | 5cf6efefbfd06d723973b6517b442f0ee64416b7 (patch) | |
| tree | da00f2c24881267859ab46843398cb10d8fe2ff2 /src/arc-context.h | |
| parent | Modified SP_IS_ macros. (diff) | |
| download | inkscape-5cf6efefbfd06d723973b6517b442f0ee64416b7.tar.gz inkscape-5cf6efefbfd06d723973b6517b442f0ee64416b7.zip | |
Added runtime check in SP_-cast macros.
(bzr r11608.1.123)
Diffstat (limited to 'src/arc-context.h')
| -rw-r--r-- | src/arc-context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arc-context.h b/src/arc-context.h index ec2dbb2bb..56eb02943 100644 --- a/src/arc-context.h +++ b/src/arc-context.h @@ -23,7 +23,7 @@ #include "sp-ellipse.h" -#define SP_ARC_CONTEXT(obj) ((SPArcContext*)obj) +#define SP_ARC_CONTEXT(obj) (dynamic_cast<SPArcContext*>((SPEventContext*)obj)) #define SP_IS_ARC_CONTEXT(obj) (dynamic_cast<const SPArcContext*>(const SPEventContext*(obj)) != NULL) class SPArcContext : public SPEventContext { |
