Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xdmf
Xdmf
Commits
dd5eeb0a
Commit
dd5eeb0a
authored
Jan 18, 2012
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Fix bug in parse() function that only allowed correct parsing when Xdmf
fragment was surrounded by an <Xdmf> tag.
parent
48c377c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
core/XdmfCoreReader.cpp
core/XdmfCoreReader.cpp
+9
-2
No files found.
core/XdmfCoreReader.cpp
View file @
dd5eeb0a
...
...
@@ -283,8 +283,15 @@ XdmfCoreReader::parse(const std::string & lightData) const
{
mImpl
->
parse
(
lightData
);
const
xmlNodePtr
currNode
=
xmlDocGetRootElement
(
mImpl
->
mDocument
);
const
std
::
vector
<
shared_ptr
<
XdmfItem
>
>
toReturn
=
mImpl
->
read
(
currNode
->
children
);
std
::
vector
<
shared_ptr
<
XdmfItem
>
>
toReturn
;
if
(
mImpl
->
mItemFactory
->
createItem
((
const
char
*
)
currNode
->
name
,
std
::
map
<
std
::
string
,
std
::
string
>
(),
std
::
vector
<
shared_ptr
<
XdmfItem
>
>
())
==
NULL
)
{
toReturn
=
mImpl
->
read
(
currNode
->
children
);
}
else
{
toReturn
=
mImpl
->
read
(
currNode
);
}
mImpl
->
closeFile
();
return
(
toReturn
[
0
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment