Skip to content

Fix write empty copyright author tags and sync with android#745

Open
DmitrySvetlichny wants to merge 2 commits intomasterfrom
Bug-schema-GPX-write-empty-copyright-author-tags
Open

Fix write empty copyright author tags and sync with android#745
DmitrySvetlichny wants to merge 2 commits intomasterfrom
Bug-schema-GPX-write-empty-copyright-author-tags

Conversation

@DmitrySvetlichny
Copy link
Copy Markdown
Contributor

No description provided.


void OsmAnd::GpxDocument::writeCopyright(QXmlStreamWriter& xmlWriter, const Ref<Copyright>& copyright)
{
xmlWriter.writeTextElement(QStringLiteral("author"), copyright->author);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not corresponds to java code. writeAttribute?

writeNotNullText(xmlWriter, QStringLiteral("desc"), metadata->description);

if (metadata->author)
if (metadata->author && !metadata->author->name.isEmpty())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not corresponds to java code

}

if (metadata->copyright)
if (metadata->copyright && !metadata->copyright->author.isEmpty())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not corresponds to java code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants