瀏覽代碼

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 年之前
父節點
當前提交
9e59a9c4e4
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;
 }