diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-09-25 21:51:52 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-09-25 21:51:52 +0000 |
| commit | 96190a607cf8edbcb8d4d2f88f0e451cf6abfa83 (patch) | |
| tree | 23926255835e7dba58563cfa2ef818abd528d43e /src/sp-spiral.cpp | |
| parent | patch by Tomasz Boczkowski for missing Windows icon (Bug 1228591) (diff) | |
| download | inkscape-96190a607cf8edbcb8d4d2f88f0e451cf6abfa83.tar.gz inkscape-96190a607cf8edbcb8d4d2f88f0e451cf6abfa83.zip | |
C++ify calling a few SPLPEItem functions, much more work than expected... slowly slowly...
(bzr r12593)
Diffstat (limited to 'src/sp-spiral.cpp')
| -rw-r--r-- | src/sp-spiral.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sp-spiral.cpp b/src/sp-spiral.cpp index 0c5ef253f..e911e722c 100644 --- a/src/sp-spiral.cpp +++ b/src/sp-spiral.cpp @@ -326,7 +326,7 @@ void SPSpiral::set_shape() { SPSpiral *spiral = this; SPSpiral* shape = spiral; - if (sp_lpe_item_has_broken_path_effect(SP_LPE_ITEM(shape))) { + if (hasBrokenPathEffect()) { g_warning ("The spiral shape has unknown LPE on it! Convert to path to make it editable preserving the appearance; editing it as spiral will remove the bad LPE"); if (shape->getRepr()->attribute("d")) { @@ -380,12 +380,12 @@ void SPSpiral::set_shape() { /* Reset the shape'scurve to the "original_curve" * This is very important for LPEs to work properly! (the bbox might be recalculated depending on the curve in shape)*/ - shape->setCurveInsync( c, TRUE); - shape->setCurveBeforeLPE( c ); + setCurveInsync( c, TRUE); + setCurveBeforeLPE( c ); - if (sp_lpe_item_has_path_effect(SP_LPE_ITEM(shape)) && sp_lpe_item_path_effects_enabled(SP_LPE_ITEM(shape))) { + if (hasPathEffect() && sp_lpe_item_path_effects_enabled(this)) { SPCurve *c_lpe = c->copy(); - bool success = sp_lpe_item_perform_path_effect(SP_LPE_ITEM (shape), c_lpe); + bool success = sp_lpe_item_perform_path_effect(this, c_lpe); if (success) { shape->setCurveInsync( c_lpe, TRUE); |
