diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2013-10-08 10:22:49 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2013-10-08 10:22:49 +0000 |
| commit | f5d74fe46345673252807be3b6812bbb0469e457 (patch) | |
| tree | 2dd29c409d36d5dbfbe008cfff774880fd310b3d /src/sp-mesh-array.cpp | |
| parent | cppcheck (diff) | |
| download | inkscape-f5d74fe46345673252807be3b6812bbb0469e457.tar.gz inkscape-f5d74fe46345673252807be3b6812bbb0469e457.zip | |
Seamlessly switch between SVG circle, ellipse, and path (arc) elements while using the Circle, Ellipse, and Arc tool.
(bzr r12670)
Diffstat (limited to 'src/sp-mesh-array.cpp')
| -rw-r--r-- | src/sp-mesh-array.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-mesh-array.cpp b/src/sp-mesh-array.cpp index 2c3c7fa65..5a204e8b0 100644 --- a/src/sp-mesh-array.cpp +++ b/src/sp-mesh-array.cpp @@ -1058,9 +1058,9 @@ void SPMeshNodeArray::create( SPMeshGradient *mg, SPItem *item, Geom::OptRect bb end = start + 2.0 * M_PI; } - if ( SP_IS_ARC( item ) ) { + if ( SP_IS_GENERICELLIPSE( item ) ) { // For arcs use set start/stop - SPArc* arc = SP_ARC( item ); + SPGenericEllipse* arc = SP_GENERICELLIPSE( item ); center[Geom::X] = arc->cx.computed; center[Geom::Y] = arc->cy.computed; rx = arc->rx.computed; @@ -1130,11 +1130,11 @@ void SPMeshNodeArray::create( SPMeshGradient *mg, SPItem *item, Geom::OptRect bb // Normal grid meshes - if( SP_IS_ARC( item ) ) { + if( SP_IS_GENERICELLIPSE( item ) ) { // std::cout << "We've got ourselves an arc!" << std::endl; - SPArc* arc = SP_ARC( item ); + SPGenericEllipse* arc = SP_GENERICELLIPSE( item ); center[Geom::X] = arc->cx.computed; center[Geom::Y] = arc->cy.computed; gdouble rx = arc->rx.computed; |
