Code

- try to use more forward declarations for less dependencies on display/curve.h
[inkscape.git] / src / sp-shape.cpp
index 99ebdbe23b6a2dfcdd6d545fe31c8a92168078de..fff9de7d3434fa56b2c35f4f722fb5f3b76abaf6 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "macros.h"
 #include "display/nr-arena-shape.h"
+#include "display/curve.h"
 #include "print.h"
 #include "document.h"
 #include "style.h"
@@ -545,8 +546,8 @@ NR::Matrix
 sp_shape_marker_get_transform(SPShape const *shape, NArtBpath const *bp)
 {
     g_return_val_if_fail(( is_moveto(SP_CURVE_BPATH(shape->curve)[0].code)
-                           && ( 0 < shape->curve->end )
-                           && ( SP_CURVE_BPATH(shape->curve)[shape->curve->end].code == NR_END ) ),
+                           && ( 0 < shape->curve->_end )
+                           && ( SP_CURVE_BPATH(shape->curve)[shape->curve->_end].code == NR_END ) ),
                          NR::Matrix(NR::translate(bp->c(3))));
     double const angle1 = incoming_tangent(bp);
     double const angle2 = outgoing_tangent(bp);