Commit 1172b692ae7b63a1bfd94d2c049e027c929dae52
1 parent
9b8e1f42
Exists in
master
and in
15 other branches
Fix VOTable reader when fields don't have ID
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/TimeTableCatalog/VOTableReader.cc
... | ... | @@ -161,6 +161,11 @@ void VOTableReader::readField(TimeTable& pTT, xmlTextReaderPtr reader) { |
161 | 161 | std::string attrUcdStr = (attrUcd != NULL) ? std::string((const char *)attrUcd) : ""; |
162 | 162 | std::string attrUtypeStr = (attrUtype != NULL) ? std::string((const char *)attrUtype) : ""; |
163 | 163 | |
164 | + if (attrIdStr.empty()) { | |
165 | + attrIdStr = "FIELD_"; | |
166 | + attrIdStr += std::to_string(_fieldCount); | |
167 | + } | |
168 | + | |
164 | 169 | ((Catalog *) &pTT)->addParameterDescription(ParameterDescription( |
165 | 170 | attrIdStr, |
166 | 171 | attrNameStr, |
... | ... |