diff options
| author | Abhishek Sharma Public <spyzerdotabhishek0at-signgmaildotcom> | 2010-07-14 18:10:35 +0000 |
|---|---|---|
| committer | Abhishek Sharma Public <spyzerdotabhishek0at-signgmaildotcom> | 2010-07-14 18:10:35 +0000 |
| commit | cde0571b44ec5b108907bda85971c49f3ceb1de8 (patch) | |
| tree | 88f75682989d77787d297498b9bda9568a5e53f5 /src/sp-rect.cpp | |
| parent | SPObject c++ification finalized along with the beginning of XML Privatisation... (diff) | |
| download | inkscape-cde0571b44ec5b108907bda85971c49f3ceb1de8.tar.gz inkscape-cde0571b44ec5b108907bda85971c49f3ceb1de8.zip | |
SPShape c++ified to the extent it was possible and more changes done for XML privatisation. Major changes yet to come.
(bzr r9546.1.7)
Diffstat (limited to 'src/sp-rect.cpp')
| -rw-r--r-- | src/sp-rect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp index 4e417f35b..5b75269dc 100644 --- a/src/sp-rect.cpp +++ b/src/sp-rect.cpp @@ -185,7 +185,7 @@ sp_rect_update(SPObject *object, SPCtx *ctx, guint flags) rect->height.update(em, ex, h); rect->rx.update(em, ex, w); rect->ry.update(em, ex, h); - sp_shape_set_shape((SPShape *) object); + ((SPShape *) object)->setShape(); flags &= ~SP_OBJECT_USER_MODIFIED_FLAG_B; // since we change the description, it's not a "just translation" anymore } @@ -231,7 +231,7 @@ sp_rect_set_shape(SPShape *shape) SPRect *rect = (SPRect *) shape; if ((rect->height.computed < 1e-18) || (rect->width.computed < 1e-18)) { - sp_shape_set_curve_insync(SP_SHAPE(rect), NULL, TRUE); + SP_SHAPE(rect)->setCurveInsync( NULL, TRUE); return; } @@ -281,7 +281,7 @@ sp_rect_set_shape(SPShape *shape) } c->closepath(); - sp_shape_set_curve_insync(SP_SHAPE(rect), c, TRUE); + SP_SHAPE(rect)->setCurveInsync( c, TRUE); c->unref(); } |
