Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
9e59a9c4e4
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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;
 }