diff --git a/src/pen-context.h b/src/pen-context.h
index fb5c2237154c5cc8384e9177cd4df17c97c7b75c..68a2665e0dd21d1f1aa619a19a1f41247e058f62 100644 (file)
--- a/src/pen-context.h
+++ b/src/pen-context.h
*/
#include "draw-context.h"
-
-namespace Inkscape {
-namespace LivePathEffect {
-class Effect;
-}
-}
+#include "live_effects/effect.h"
#define SP_TYPE_PEN_CONTEXT (sp_pen_context_get_type())
#define SP_PEN_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_PEN_CONTEXT, SPPenContext))
GType sp_pen_context_get_type();
+inline bool sp_pen_context_has_waiting_LPE(SPPenContext *pc) {
+ // note: waiting_LPE_type is defined in SPDrawContext
+ return (pc->waiting_LPE != NULL ||
+ pc->waiting_LPE_type != Inkscape::LivePathEffect::INVALID_LPE);
+}
+
#endif /* !SEEN_PEN_CONTEXT_H */