diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-11-05 02:32:30 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-11-05 02:32:30 +0000 |
| commit | 05d344828f919fad7846d2d76534eb02b554dc00 (patch) | |
| tree | 0d8c4e78b309123ef0d06e6ba28a2ded89d8f79f /src/display | |
| parent | Update branding folder, remove fonts (diff) | |
| download | inkscape-05d344828f919fad7846d2d76534eb02b554dc00.tar.gz inkscape-05d344828f919fad7846d2d76534eb02b554dc00.zip | |
Fix bug:1639083 crach closing segment with shortcut LPE
Fixed bugs:
- https://launchpad.net/bugs/1639083
(bzr r15210)
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/curve.cpp | 12 | ||||
| -rw-r--r-- | src/display/curve.h | 1 |
2 files changed, 13 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. */ diff --git a/src/display/curve.h b/src/display/curve.h index 42b899210..72e6df95c 100644 --- a/src/display/curve.h +++ b/src/display/curve.h @@ -43,6 +43,7 @@ public: size_t nodes_in_path() const; bool is_empty() const; + bool is_unset() const; bool is_closed() const; Geom::Curve const * last_segment() const; Geom::Path const * last_path() const; |
