diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 49e651fa30fb10d6b6515ed735d1039d4ad3cab4..bcfa379d2222fe3bfab0ad8b51fdb312f3b99022 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -2986,6 +2986,13 @@ function gui_draw_coords(cid, tag, shape, points) {
                 cy: points[1]
             });
             break;
+        case "polyline":
+        case "polygon":
+            configure_item(elem, {
+                points: points
+            });
+            break;
+        default:
     }
 }