changeset 1376:eee1d8cc672b

fix bug when creating shapes without handles.
author robcast
date Thu, 26 Feb 2015 11:37:11 +0100
parents 4ca66f4bdd3e
children 9f0bf576214c
files webapp/src/main/webapp/jquery/jquery.digilib.vector.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.vector.js	Tue Feb 24 16:12:31 2015 +0100
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.vector.js	Thu Feb 26 11:37:11 2015 +0100
@@ -615,7 +615,7 @@
                 // update shape SVG element
                 $shape.place();
                 // move handles accordingly
-                placeHandles();
+                if (shape.$vertexElems != null) placeHandles();
                 $(data).trigger('dragShape', shape);
             }
             return false;