Ruben2776 / PicView

Fast, free and customizable image viewer for Windows 10 and 11.
https://picview.org
Other
939 stars 63 forks source link

[Bug] Zoom causes crash #121

Closed nopeless closed 8 months ago

nopeless commented 8 months ago

Zooming in without image is loaded crashes the application

Null reference error and I believe this is an easy bug to fix. If you are unsure what I am referring to let me know

nopeless commented 8 months ago

@me505 If you are interested in this, the project compiles out of the box (fresh clone just compiles straight away). The offending method is here

https://github.com/Ruben2776/PicView/blob/9aea1678a63ef5794f8788ae9ab7d6ab883dd8ac/src/PicView/UILogic/TransformImage/Zoom.cs#L239-L288

Just add a null check

BeanieMen commented 8 months ago

What is this.

nopeless commented 8 months ago

What is this.

Its a lightweight .NET WPF image viewer. Kinda like the "Photos" program that comes with a windows install

Ruben2776 commented 8 months ago

Thanks. It will be fixed in next release.