Browse Source

Additional check to gather attributes for rows without tagname

If xpath specifies that a row should be output without a root tag
queryAttrList may never be called at the row level.  If so, gather
the attributes for nested records later, when queryAttrList is called
for one of the nested records.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Anthony Fishbeck 13 years ago
parent
commit
9e59a9c4e4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      common/fileview2/fvsource.cpp

+ 2 - 0
common/fileview2/fvsource.cpp

@@ -482,6 +482,8 @@ void DataSourceMetaData::gatherAttributes()
 
 const IntArray &DataSourceMetaData::queryAttrList(unsigned column)
 {
+    if (!gatheredAttributes)
+        gatherAttributes();
     return fields.item(column).nestedAttributes;
 }