Pass station name to export code as wxString
commit8c4cefbe1d650e64c472bd97773db08dd7afa6c0
authorOlly Betts <olly@survex.com>
Sat, 2 Mar 2024 01:22:05 +0000 (2 14:22 +1300)
committerOlly Betts <olly@survex.com>
Sat, 2 Mar 2024 01:30:53 +0000 (2 14:30 +1300)
tree81107af41621050bd3280901197c1d308749cd56
parent4975bf84396eb402a7d5788b46d649fc08563afd
Pass station name to export code as wxString

This means we don't force a conversion to UTF8 for formats where
the name isn't actually used, and also means we can pass the name
in to the `cross` method too without worrying about extra costs.

This fixes poor handling of equated stations in SVG export where
previously we'd write out the same station name for each equated
station.  SVG export is also more efficient than before.
18 files changed:
src/export.cc
src/export3d.cc
src/export3d.h
src/exportfilter.h
src/gpx.cc
src/gpx.h
src/hpgl.cc
src/hpgl.h
src/json.cc
src/json.h
src/kml.cc
src/kml.h
src/pos.cc
src/pos.h
tests/Makefile.am
tests/cavern.tst
tests/svgexport.svg [new file with mode: 0644]
tests/svgexport.svx [new file with mode: 0644]