openframeworks / openframeworks/openFrameworks

ofXml addChild doesn't add a child but reports success

Open
#3,642 5 comments 0 reactions 1 assignee View on GitHub

@joshuajnoble is already working on this.

Since Feb 13, 2015.

addon bug waiting-for-feedback
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

ofXml xml;
if (xml.addChild("top"))
{
    int numChild = xml.getNumChildren();
    // numChild == 0
}

ofXml::addChild() needs to check element is set before doing anything.

OF HEAD and 0.8.4, OS X 10.10, Xcode

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.