Skip to content

Commit

Permalink
Update PixiEditor/Models/Tools/Tools/FloodFill.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Krzysztof Krysiński <flubbet@gmail.com>
  • Loading branch information
brogowski and flabbet committed Oct 11, 2020
1 parent 77c83ce commit f5e6d88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PixiEditor/Models/Tools/Tools/FloodFill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ private BitmapPixelChanges ForestFire(Layer layer, Coordinates startingCoords, C
{
List<Coordinates> changedCoords = new List<Coordinates>();

int width = layer.Width;
int height = layer.Height;
int width = ViewModelMain.Current.BitmapManager.ActiveDocument.Width;
int height = ViewModelMain.Current.BitmapManager.ActiveDocument.Height;

var visited = new bool[width, height];

Expand Down Expand Up @@ -58,4 +58,4 @@ private BitmapPixelChanges ForestFire(Layer layer, Coordinates startingCoords, C
return BitmapPixelChanges.FromSingleColoredArray(changedCoords, newColor);
}
}
}
}

0 comments on commit f5e6d88

Please sign in to comment.