Skip to content

Commit

Permalink
Do not destroy resource previously allocated
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo committed Dec 11, 2024
1 parent 72cbc51 commit 21d3727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ struct Grid {
}

void MergeWithParent(Grid *p, Selection &s, Document *doc) {
cell->grid = nullptr;
cell->grid.release();
foreachcell(c) {
if (x + s.x >= p->xs) p->InsertCells(p->xs, -1, 1, 0);
if (y + s.y >= p->ys) p->InsertCells(-1, p->ys, 0, 1);
Expand Down

0 comments on commit 21d3727

Please sign in to comment.