fix a potential bug: only increase nr_mask_rects for not empty mask rectangle

This commit is contained in:
Vincent Wei
2020-10-13 08:15:57 +08:00
parent f86fa9d483
commit 2b99ac28eb

View File

@@ -4599,10 +4599,10 @@ BOOL GUIAPI ServerGetWinZNodeRegion (MG_Layer* layer, int idx_znode,
goto __mg_err_ret;
}
}
nr_mask_rects ++;
}
idx = maskrect->next;
nr_mask_rects ++;
}
if (nr_mask_rects == 0) {