summaryrefslogtreecommitdiff
path: root/tests/harness/stitchdump.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-18 21:53:16 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-18 21:53:16 +0100
commit236b1c56546378327ec014c68cebde37a7d2c725 (patch)
tree8bcbd46d3f437491cae4c35ce35e095299e83077 /tests/harness/stitchdump.cxx
parent73ad3eccad74754c1e74ff3025f4d4581f6178cb (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 'tests/harness/stitchdump.cxx')
0 files changed, 0 insertions, 0 deletions