diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-01-17 20:25:50 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2012-01-17 20:25:50 +0000 |
| commit | cf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19 (patch) | |
| tree | fb8985008fda43525f296bc50584d8d4abc3d5dc /src/connector-context.cpp | |
| parent | change pencil tool dropdown shapes to use powerstroke, instead of pattern alo... (diff) | |
| download | inkscape-cf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19.tar.gz inkscape-cf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19.zip | |
turn SPPath into a class, and add some methods...
(bzr r10897)
Diffstat (limited to 'src/connector-context.cpp')
| -rw-r--r-- | src/connector-context.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/connector-context.cpp b/src/connector-context.cpp index 7ab617094..395cf04ea 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -980,7 +980,7 @@ connector_handle_motion_notify(SPConnectorContext *const cc, GdkEventMotion cons Geom::Affine i2d ( (cc->clickeditem)->i2dt_affine() ); Geom::Affine d2i = i2d.inverse(); SPPath *path = SP_PATH(cc->clickeditem); - SPCurve *curve = sp_path_get_curve(path); + SPCurve *curve = path->get_curve(); if (cc->clickedhandle == cc->endpt_handle[0]) { Geom::Point o = cc->endpt_handle[1]->pos; curve->stretch_endpoints(p * d2i, o * d2i); @@ -992,7 +992,7 @@ connector_handle_motion_notify(SPConnectorContext *const cc, GdkEventMotion cons sp_conn_reroute_path_immediate(path); // Copy this to the temporary visible path - cc->red_curve = sp_path_get_curve_for_edit(path); + cc->red_curve = path->get_curve_for_edit(); cc->red_curve->transform(i2d); sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(cc->red_bpath), cc->red_curve); @@ -1605,7 +1605,7 @@ endpt_handler(SPKnot */*knot*/, GdkEvent *event, SPConnectorContext *cc) } // Show the red path for dragging. - cc->red_curve = sp_path_get_curve_for_edit(SP_PATH(cc->clickeditem)); + cc->red_curve = SP_PATH(cc->clickeditem)->get_curve_for_edit(); Geom::Affine i2d = (cc->clickeditem)->i2dt_affine(); cc->red_curve->transform(i2d); sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(cc->red_bpath), cc->red_curve); @@ -1764,7 +1764,7 @@ cc_set_active_conn(SPConnectorContext *cc, SPItem *item) { g_assert( SP_IS_PATH(item) ); - const SPCurve *curve = sp_path_get_curve_reference(SP_PATH(item)); + const SPCurve *curve = SP_PATH(item)->get_curve_reference(); Geom::Affine i2dt = item->i2dt_affine(); if (cc->active_conn == item) @@ -1917,7 +1917,7 @@ static bool cc_item_is_shape(SPItem *item) bool cc_item_is_connector(SPItem *item) { if (SP_IS_PATH(item)) { - bool closed = sp_path_get_curve_reference(SP_PATH(item))->is_closed(); + bool closed = SP_PATH(item)->get_curve_reference()->is_closed(); if (SP_PATH(item)->connEndPair.isAutoRoutingConn() && !closed) { // To be considered a connector, an object must be a non-closed // path that is marked with a "inkscape:connector-type" attribute. |
