Skip to content

Commit

Permalink
Fixed selecttool
Browse files Browse the repository at this point in the history
  • Loading branch information
flabbet committed Feb 20, 2022
1 parent c1c3858 commit f3719b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ private Document()
Layers.CollectionChanged += Layers_CollectionChanged;
LayerStructure.Groups.CollectionChanged += Groups_CollectionChanged;
LayerStructure.LayerStructureChanged += LayerStructure_LayerStructureChanged;
ActiveSelection = new Selection(Array.Empty<Coordinates>(), new PixelSize(Width, Height));
DocumentSizeChanged += (sender, args) =>
{
ActiveSelection = new Selection(Array.Empty<Coordinates>(), new PixelSize(args.NewWidth, args.NewHeight));
Renderer.Resize(args.NewWidth, args.NewHeight);
GeneratePreviewLayer();
};
Expand Down

0 comments on commit f3719b4

Please sign in to comment.