Skip to content

Commit 78ae7ee

Browse files
committed
- Bug solved: In a new Sprite file, click on draw area without creating a new sprite crash ZXBS
- Import from graphic file (.png) alpha
1 parent 618b079 commit 78ae7ee

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ZXBStudio/DocumentEditors/ZXGraphics/SpritePatternEditor.axaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,11 @@ private void GrdEditor_PointerMoved(object? sender, Avalonia.Input.PointerEventA
284284
/// <param name="value">Value of the point</param>
285285
private void SetPoint(double mx, double my, int value)
286286
{
287+
if (SpriteData == null)
288+
{
289+
return;
290+
}
291+
287292
int x = (int)mx;
288293
int y = (int)my;
289294

0 commit comments

Comments
 (0)