diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-18 21:53:16 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-18 21:53:16 +0100 |
| commit | 236b1c56546378327ec014c68cebde37a7d2c725 (patch) | |
| tree | 8bcbd46d3f437491cae4c35ce35e095299e83077 /crates/gipfel-desktop/icons/64x64.png | |
| parent | 73ad3eccad74754c1e74ff3025f4d4581f6178cb (diff) | |
core: a metadata-less image must not poison the viewpoint with NaN
apply_image_metadata guarded direction/pitch/roll/focal against NaN
but set view lat/lon/height unconditionally. Loading a PNG or any
image without GPS after a geotagged one set view_phi/lam to NaN,
which makes every hill azimuth NaN - the entire database vanished
and the lat/lon fields showed NaN, with no recovery until manual
re-entry.
NaN now falls back to the neutral 0 (same defaults as Panorama::new),
matching the existing guards for the other fields. Regression test
loads an all-NaN metadata set over a previously-set viewpoint and
asserts every resulting view parameter stays finite.
Diffstat (limited to 'crates/gipfel-desktop/icons/64x64.png')
0 files changed, 0 insertions, 0 deletions
