Merge branch 'r3.4'

This commit is contained in:
Victor Shcherb 2019-07-12 18:13:45 +02:00
commit b436272ae5

View file

@ -1795,11 +1795,13 @@ public class GPXUtilities {
} }
if (tag.equals("author")) { if (tag.equals("author")) {
Author author = new Author(); Author author = new Author();
author.name = parser.getText();
((Metadata) parse).author = author; ((Metadata) parse).author = author;
parserState.push(author); parserState.push(author);
} }
if (tag.equals("copyright")) { if (tag.equals("copyright")) {
Copyright copyright = new Copyright(); Copyright copyright = new Copyright();
copyright.license = parser.getText();
copyright.author = parser.getAttributeValue("", "author"); copyright.author = parser.getAttributeValue("", "author");
((Metadata) parse).copyright = copyright; ((Metadata) parse).copyright = copyright;
parserState.push(copyright); parserState.push(copyright);