diff --git a/vtm/src/org/oscim/core/TagSet.java b/vtm/src/org/oscim/core/TagSet.java index e802fae5..e62b1180 100644 --- a/vtm/src/org/oscim/core/TagSet.java +++ b/vtm/src/org/oscim/core/TagSet.java @@ -2,7 +2,7 @@ * Copyright 2013 Hannes Janetzek * Copyright 2016 Andrey Novikov * Copyright 2016 devemux86 - * Copyright 2017 Gustl22 + * Copyright 2017-2019 Gustl22 * * This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * @@ -179,6 +179,16 @@ public class TagSet { numTags = newTags; } + /** + * Sets the tags from 'tagSet'. + * + * @param tagSet the tag set + */ + public void set(TagSet tagSet) { + set(tagSet.getTags()); + numTags = tagSet.numTags; + } + /** * Checks if 'tag' is contained in TagSet. *