diff --git a/DialogTools/VarGroupingEditorDlg.cpp b/DialogTools/VarGroupingEditorDlg.cpp index bf5a2ffa7..b9e533a64 100644 --- a/DialogTools/VarGroupingEditorDlg.cpp +++ b/DialogTools/VarGroupingEditorDlg.cpp @@ -350,18 +350,38 @@ void VarGroupingEditorDlg::OnSaveSpaceTimeTableClick( wxCommandEvent& event ) */ } - if (!time_stack.empty()) { - OGRColumn* time_col = new OGRColumnString("TIME", 50, 0, n); - time_col->UpdateData(time_stack); - mem_table_int->AddOGRColumn(time_col); - } if (!select_stack.empty() && has_highligh) { OGRColumn* select_col = new OGRColumnInteger("SELECT", 18, 0, n); select_col->UpdateData(select_stack); mem_table_int->AddOGRColumn(select_col); } - + + if (!time_stack.empty()) { + OGRColumn* time_col = new OGRColumnString("TIME", 50, 0, n); + time_col->UpdateData(time_stack); + mem_table_int->AddOGRColumn(time_col); + + // add time dummies + for (int t=0; t time_dummy_vals; + + for (int tt=0; ttUpdateData(time_dummy_vals); + mem_table_int->AddOGRColumn(time_dummy_col); + } + } + int n_col = table_int->GetNumberCols(); for (int i=0; iIsColTimeVariant(i)) { diff --git a/SampleData/proj_nat_st.gda b/SampleData/proj_nat_st.gda index 297921c8d..d9c8d5cd2 100644 --- a/SampleData/proj_nat_st.gda +++ b/SampleData/proj_nat_st.gda @@ -130,10 +130,6 @@ FH80 FH90 - LISA_I - LISA_CL - LISA_P - DIFF_VAL