fixed an issue where textShapes would disappear after page refresh

This commit is contained in:
Anton Georgiev 2014-08-19 19:09:37 +00:00
parent 6acc236cc8
commit 639f672e29

View File

@ -31,12 +31,12 @@ Template.slide.helpers
shapes = Meteor.Shapes.find({whiteboardId: currentSlide?.slide?.id}).fetch()
for s in shapes
shapeInfo = s.shape?.shape or @data.shape
shapeInfo = s.shape?.shape or s?.shape
shapeType = shapeInfo?.type
if shapeType isnt "text"
for num in [0..3] # the coordinates must be in the range 0 to 1
shapeInfo.points[num] = shapeInfo.points[num] / 100
shapeInfo?.points[num] = shapeInfo?.points[num] / 100
wpm.makeShape(shapeType, shapeInfo)
wpm.updateShape(shapeType, shapeInfo)