openframeworks / ofSite

openFrameworks web site
http://openframeworks.cc
159 stars 578 forks source link

Small Documentation problem in ofxXmlSettings #805

Open adminfriso opened 1 year ago

adminfriso commented 1 year ago

on the code block of "A more complex example involving saving an array."

positions.addTag("positions");

will result in indefinitely adding a new positions tag adding a tag exists around it will make sure this will not happen. should be a small fix for someone who already has this repo setup for editing

if (!positions.tagExists("positions")) { positions.addTag("positions"); }