summaryrefslogtreecommitdiffstats
path: root/src/sp-offset.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-11-16 21:22:36 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-11-16 21:22:36 +0000
commit8420f10fa1e70abe46a90978d28c16a6f3a8ea7b (patch)
tree7902443eb1b06f8da5e3ff06db2090b392e96160 /src/sp-offset.cpp
parentfix error su_v tell to me (diff)
parentfix typo in rev 12797 (diff)
downloadinkscape-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.cpp25
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;