Commit 923bea2b authored by Jerry Clarke's avatar Jerry Clarke
Browse files

find the CurrentElement for an Attribute by getting

it from the XdmfAttribute not from the XML (that
code was wrond anyway)
parent 4f0860ff
......@@ -69,7 +69,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vector>
vtkStandardNewMacro(vtkXdmfReader);
vtkCxxRevisionMacro(vtkXdmfReader, "1.6");
vtkCxxRevisionMacro(vtkXdmfReader, "1.7");
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__))
# include <direct.h>
......@@ -553,7 +553,8 @@ void vtkXdmfReader::Execute()
status = this->CellDataArraySelection->ArrayIsEnabled(name);
}
}
attrNode = this->DOM->FindElement("Attribute", cc);
// attrNode = this->DOM->FindElement("Attribute", cc);
attrNode = Attribute->GetCurrentElement();
// dataNode = this->DOM->FindElement("DataStructure", 0, attrNode);
// Find the DataTransform or DataStructure below the <Attribute>
dataNode = this->DOM->FindElement(NULL, 0, attrNode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment