We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf1b4ec commit 1deafe3Copy full SHA for 1deafe3
Pixed.Common/Tools/SelectionManager.cs
@@ -154,10 +154,10 @@ private async Task Erase()
154
var pixels = _currentSelection.Pixels.Select(p => new Pixel(p.Position)).ToList();
155
var frame = _applicationData.CurrentFrame;
156
157
- var canvas = frame.GetCanvas();
158
- canvas.DrawPixelsOpaque(pixels, new Point(frame.Width, frame.Height));
159
- canvas.Dispose();
+ var handle = frame.GetHandle();
+ handle.SetPixels(pixels);
160
+ _applicationData.CurrentModel.ResetRecursive();
161
Subjects.FrameModified.OnNext(frame);
162
await _historyService.AddToHistory(_applicationData.CurrentModel);
163
}
0 commit comments