summaryrefslogtreecommitdiffstats
path: root/src/sp-flowregion.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-flowregion.h')
-rw-r--r--src/sp-flowregion.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-flowregion.h b/src/sp-flowregion.h
index 2a17b1309..59818651a 100644
--- a/src/sp-flowregion.h
+++ b/src/sp-flowregion.h
@@ -6,10 +6,10 @@
#include "sp-item.h"
-#define SP_FLOWREGION(obj) ((SPFlowregion*)obj)
+#define SP_FLOWREGION(obj) (dynamic_cast<SPFlowregion*>((SPObject*)obj))
#define SP_IS_FLOWREGION(obj) (dynamic_cast<const SPFlowregion*>((SPObject*)obj) != NULL)
-#define SP_FLOWREGIONEXCLUDE(obj) ((SPFlowregionExclude*)obj)
+#define SP_FLOWREGIONEXCLUDE(obj) (dynamic_cast<SPFlowregionExclude*>((SPObject*)obj))
#define SP_IS_FLOWREGIONEXCLUDE(obj) (dynamic_cast<const SPFlowregionExclude*>((SPObject*)obj) != NULL)
class Path;