Commit fb730f0b authored by Podhorszki, Norbert's avatar Podhorszki, Norbert
Browse files

Fix handling attributes assigned to a variable whose name is one character

parent 13763cc8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -264,6 +264,7 @@ StepStatus HDF5ReaderP::BeginStep(StepMode mode, const float timeoutSeconds)
    }

    m_IO.RemoveAllVariables();
    m_IO.RemoveAllAttributes();
    m_H5File.ReadVariables(m_StreamAt, m_IO);

    return StepStatus::OK;
+1 −1
Original line number Diff line number Diff line
@@ -1054,7 +1054,7 @@ void HDF5Common::LocateAttrParent(const std::string &attrName,
    std::string token;
    while ((pos = s.find(delimiter)) != std::string::npos)
    {
        if (pos > 1)
        if (pos > 0)
        { // "///a/b/c" == "a/b/c"
            token = s.substr(0, pos);
            list.push_back(token);