We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82da36f commit 8731bf5Copy full SHA for 8731bf5
1 file changed
modules/gpad/TPadPainter.mjs
@@ -1235,7 +1235,10 @@ class TPadPainter extends ObjectPainter {
1235
if (!lst)
1236
return;
1237
for (let i = 0; i < lst.arr?.length; ++i) {
1238
- if (this.checkSpecial(lst.arr[i])) {
+ if (lst.arr[i] === lst) {
1239
+ lst.arr[i] = null;
1240
+ console.error('list of primitives includes itself - endless recursion');
1241
+ } else if (this.checkSpecial(lst.arr[i])) {
1242
lst.arr[i].$special = true; // mark object as special one, do not use in drawing
1243
if (count_specials)
1244
this.#num_specials++;
0 commit comments