Skip to content

Commit

Permalink
Reset layout when resetting image scale (#307)
Browse files Browse the repository at this point in the history
When the image scale is reset, also reset the layout to adapt the cell
to the new dimensions of the image.
  • Loading branch information
tobiolo committed Dec 12, 2022
1 parent 5562b45 commit 3715124
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,7 @@ struct Document {
if (c->text.image)
c->text.image->ResetScale(sys->frame->csf);
selected.g->cell->ResetChildren();
c->ResetLayout();
Refresh();
return nullptr;
}
Expand Down

0 comments on commit 3715124

Please sign in to comment.