diff options
Diffstat (limited to 'src/sp-font.h')
| -rw-r--r-- | src/sp-font.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-font.h b/src/sp-font.h index d90ee67f1..6e6f4eec2 100644 --- a/src/sp-font.h +++ b/src/sp-font.h @@ -18,7 +18,7 @@ #include "sp-object.h" -#define SP_FONT(obj) ((SPFont*)obj) +#define SP_FONT(obj) (dynamic_cast<SPFont*>((SPObject*)obj)) #define SP_IS_FONT(obj) (dynamic_cast<const SPFont*>((SPObject*)obj) != NULL) class SPFont : public SPObject { |
