From 44cddac7e08c3ad8c7a8914e0f583e22efc1146f Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Mon, 25 Apr 2016 20:51:43 -0400 Subject: [PATCH] add comment to explain the last commit --- pd/nw/pdgui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index 4397dc95c..2a51befc4 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -3024,6 +3024,9 @@ function gui_image_configure(cid, tag, image_key, tk_anchor) { // Move an image function gui_image_coords(cid, tag, x, y) { + // ggee/image accepts a message that can trigger this, meaning + // [loadbang] can end up calling this before the patchwindow exists. + // So we have to check for existence below if (patchwin[cid]) { elem_move(get_gobj(cid, tag), x, y); } -- GitLab