summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a16820d)
raw | patch | inline | side by side (parent: a16820d)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 8 Aug 2008 20:33:01 +0000 (20:33 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 8 Aug 2008 20:33:01 +0000 (20:33 +0000) |
src/2geom/path.h | patch | blob | history |
diff --git a/src/2geom/path.h b/src/2geom/path.h
index ab91038a6816999378affc97236c5add8e6f29a0..f4aa560ff6c1e73b4d7f0497889012b6918b4631 100644 (file)
--- a/src/2geom/path.h
+++ b/src/2geom/path.h
return ( closed_ ? end_closed() : end_open() );
}
- size_type size() const { return get_curves().size()-1; }
+ size_type size_open() const { return get_curves().size()-1; }
+ size_type size_closed() const { return get_curves().size(); }
+ size_type size_default() const {
+ return ( closed_ ? size_closed() : size_open() );
+ }
+ size_type size() const { return size_open(); }
+
size_type max_size() const { return get_curves().max_size()-1; }
bool empty() const { return get_curves().size() == 1; }