Skip to content

Commit

Permalink
Drop incomplete html_encrypt option in kml writer (GPSBabel#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlipe authored Dec 22, 2022
1 parent 29b154f commit a2f930d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 1 addition & 11 deletions kml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1238,18 +1238,8 @@ QString KmlFormat::kml_geocache_get_logs(const Waypoint* wpt) const

logpart = xml_findfirst(curlog, "groundspeak:text");
if (logpart) {
QString encstr = xml_attribute(logpart->attributes, "encoded");
bool encoded = !encstr.startsWith('F', Qt::CaseInsensitive);

QString s;
if (html_encrypt && encoded) {
s = rot13(logpart->cdata);
} else {
s = logpart->cdata;
}

r += "<br />";
r += s.toHtmlEscaped();
r += logpart->cdata.toHtmlEscaped();
}

r += "</p>";
Expand Down
1 change: 0 additions & 1 deletion kml.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ class KmlFormat : public Format
int max_position_points{};
int rotate_colors{};
int line_width{};
int html_encrypt{};
int precision{};

Waypoint* wpt_tmp{nullptr};
Expand Down

0 comments on commit a2f930d

Please sign in to comment.