summaryrefslogtreecommitdiffstats
path: root/src/display/curve.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-11-05 17:10:22 +0000
committerjabiertxof <info@marker.es>2016-11-05 17:10:22 +0000
commit218c1acafd09c2b2469db082cf6e389869f9c48e (patch)
treec7324d131df0a85effbc548e1ee35446aff25fdd /src/display/curve.cpp
parentFix angle constrain, thanks to vlada, Mc and LiamW (diff)
parentMove a header place (diff)
downloadinkscape-218c1acafd09c2b2469db082cf6e389869f9c48e.tar.gz
inkscape-218c1acafd09c2b2469db082cf6e389869f9c48e.zip
Update to trunk
(bzr r15142.1.30)
Diffstat (limited to 'src/display/curve.cpp')
-rw-r--r--src/display/curve.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index b6c387034..1998e9bec 100644
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
@@ -302,6 +302,18 @@ SPCurve::is_empty() const
}
/**
+ * True if paths are in curve. If it only contains a path with only a moveto, the path is considered as unset FALSE
+ */
+bool
+SPCurve::is_unset() const
+{
+ if (get_segment_count()) {
+ return false;
+ }
+ return true;
+}
+
+/**
* True iff all subpaths are closed.
* Returns false if the curve is empty.
*/