From f8eb701d621d36e6f9f7985088c998cfc8e1a8dd Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Mon, 7 Jan 2019 23:43:57 +0100 Subject: [PATCH] api.nas fix typos --- Nasal/canvas/api.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/canvas/api.nas b/Nasal/canvas/api.nas index c941c4f08..574410780 100644 --- a/Nasal/canvas/api.nas +++ b/Nasal/canvas/api.nas @@ -293,7 +293,7 @@ var Element = { setClipByBoundingBox: func(bounding_box, clip_frame = nil) { if (clip_frame == nil) clip_frame = Element.PARENT; - me.set("clip", boundingbox2clip(bounding_box)); + me.set("clip", me.boundingbox2clip(bounding_box)); me.set("clip-frame", clip_frame); return me; }, @@ -302,7 +302,7 @@ var Element = { setClipByElement: func(clip_elem) { clip_elem.update(); var bounds = clip_elem.getTightBoundingBox(); - me.setClipByBB(bounds, canvas.Element.PARENT); + me.setClipByBoundingBox(bounds, canvas.Element.PARENT); }, # Internal Transform for convenience transform functions