Skip to content

Commit

Permalink
Use method provided (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo authored Dec 17, 2024
1 parent 5d5ee4a commit 5110163
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,9 @@ struct Document {
SetSelect(Selection(rootgrid->grid.get(), 0, 0, 1, 1));
return;
}
Grid *ipg = ics->parent->grid.get();
foreachcellingrid(c, ipg) {
if (c == ics) {
SetSelect(Selection(ipg, x, y, xs, ys));
goto foreachcellingrid_end;
}
}
foreachcellingrid_end:;
SetSelect(ics->parent->grid->FindCell(ics));
selected.xs = xs;
selected.ys = ys;
}

void InitWith(Cell *r, const wxString &filename, Cell *ics, int xs, int ys) {
Expand Down

0 comments on commit 5110163

Please sign in to comment.