From e1db2612978dc4bca7d83ab3a4208c7523c67365 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 9 May 2008 09:37:08 +0000 Subject: - try to use more forward declarations for less dependencies on display/curve.h - change _bpath to private member of SPCurve, obtain and set with get_bpath and set_bpath. - added const methods, so protect changes to _bpath in SPCurve (bzr r5636) --- src/connector-context.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/connector-context.cpp') diff --git a/src/connector-context.cpp b/src/connector-context.cpp index 07e512e06..3c1669fa6 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -73,7 +73,7 @@ #include "sp-namedview.h" #include "sp-text.h" #include "sp-flowtext.h" - +#include "display/curve.h" static void sp_connector_context_class_init(SPConnectorContextClass *klass); static void sp_connector_context_init(SPConnectorContext *conn_context); @@ -1252,7 +1252,7 @@ static bool cc_item_is_shape(SPItem *item) { if (SP_IS_PATH(item)) { SPCurve *curve = (SP_SHAPE(item))->curve; - if ( curve && !(curve->closed) ) { + if ( curve && !(curve->is_closed()) ) { // Open paths are connectors. return false; } @@ -1271,7 +1271,7 @@ bool cc_item_is_connector(SPItem *item) { if (SP_IS_PATH(item)) { if (SP_PATH(item)->connEndPair.isAutoRoutingConn()) { - g_assert( !(SP_SHAPE(item)->curve->closed) ); + g_assert( !(SP_SHAPE(item)->curve->is_closed()) ); return true; } } -- cgit v1.2.3