diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-11-16 21:22:36 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-11-16 21:22:36 +0000 |
| commit | 8420f10fa1e70abe46a90978d28c16a6f3a8ea7b (patch) | |
| tree | 7902443eb1b06f8da5e3ff06db2090b392e96160 /src/sp-offset.cpp | |
| parent | fix error su_v tell to me (diff) | |
| parent | fix typo in rev 12797 (diff) | |
| download | inkscape-8420f10fa1e70abe46a90978d28c16a6f3a8ea7b.tar.gz inkscape-8420f10fa1e70abe46a90978d28c16a6f3a8ea7b.zip | |
fix error su_v tell to me
(bzr r12588.1.28)
Diffstat (limited to 'src/sp-offset.cpp')
| -rw-r--r-- | src/sp-offset.cpp | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/sp-offset.cpp b/src/sp-offset.cpp index c5a3557a7..c6a4b730d 100644 --- a/src/sp-offset.cpp +++ b/src/sp-offset.cpp @@ -1133,28 +1133,21 @@ refresh_offset_source(SPOffset* offset) return; } - SPItem *item = SP_ITEM (refobj); - - SPCurve *curve=NULL; - - if (!SP_IS_SHAPE (item) && !SP_IS_TEXT (item)) { - return; - } + SPItem *item = SP_ITEM (refobj); + SPCurve *curve = NULL; if (SP_IS_SHAPE (item)) { curve = SP_SHAPE (item)->getCurve (); - - if (curve == NULL) { - return; - } } - - if (SP_IS_TEXT (item)) { + else if (SP_IS_TEXT (item)) { curve = SP_TEXT (item)->getNormalizedBpath (); + } + else { + return; + } - if (curve == NULL) { - return; - } + if (curve == NULL) { + return; } Path *orig = new Path; |
