Skip to content

Commit 8266478

Browse files
committed
Restore missing header block
1 parent 9ceb762 commit 8266478

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

dynadjust/dynadjust/dnaadjust/dnaadjust_printer.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,9 +1394,18 @@ void DynAdjustPrinter::PrintAdjStationsUniqueList(std::ostream& os,
13941394
const v_mat_2d* stationEstimates, v_mat_2d* stationVariances,
13951395
bool recomputeGeographicCoords, bool updateGeographicCoords,
13961396
bool reapplyTypeBUncertainties) {
1397-
// Use new printer infrastructure for header generation
1398-
PrintStationColumnHeaders(os, adjust_.projectSettings_.o._stn_coord_types,
1399-
stationVariances != nullptr ? adjust_.projectSettings_.o._stn_corr : 0);
1397+
1398+
AdjFile adj;
1399+
try {
1400+
adj.print_adj_stn_header(os);
1401+
1402+
// Use new printer infrastructure for header generation
1403+
PrintStationColumnHeaders(os, adjust_.projectSettings_.o._stn_coord_types,
1404+
stationVariances != nullptr ? adjust_.projectSettings_.o._stn_corr : 0);
1405+
}
1406+
catch (const std::runtime_error& e) {
1407+
adjust_.SignalExceptionAdjustment(e.what(), 0);
1408+
}
14001409

14011410
UINT32 block(UINT_MAX), stn, mat_index;
14021411
_it_u32u32_uint32_pair _it_bsmu;

0 commit comments

Comments
 (0)