added point sprite for flexlay
authorMarek Moeckel <wansti@gmx.de>
Sat, 16 Jul 2005 21:34:39 +0000 (21:34 +0000)
committerMarek Moeckel <wansti@gmx.de>
Sat, 16 Jul 2005 21:34:39 +0000 (21:34 +0000)
small patch to path to make "circular" optional

SVN-Revision: 2723

data/images/engine/editor/point.png [new file with mode: 0644]
src/object/path.cpp

diff --git a/data/images/engine/editor/point.png b/data/images/engine/editor/point.png
new file mode 100644 (file)
index 0000000..24c57f7
Binary files /dev/null and b/data/images/engine/editor/point.png differ
index 4296315..941e9d0 100644 (file)
@@ -46,8 +46,10 @@ Path::Path(const lisp::Lisp& reader)
   circular = true;
   assert (iter.next());
   token = iter.item();
-  assert(token == "circular");
-  iter.value()->get(circular);
+  if (token == "circular") {
+    iter.value()->get(circular);
+    iter.next();
+  }
 
   pixels_per_second = DEFAULT_PIXELS_PER_SECOND;
   assert (iter.next());