1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

The "default" style does not to be set wxplicitly

This commit is contained in:
Martin Tůma 2018-04-02 18:30:57 +02:00
parent e3e8fdbacf
commit 60cc869ade
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@
MapSource::Config::Config() : type(TMS), zooms(ZOOM_MIN, ZOOM_MAX),
bounds(Coordinates(BOUNDS_LEFT, BOUNDS_TOP), Coordinates(BOUNDS_RIGHT,
BOUNDS_BOTTOM)), format("image/png"), rest(false), yx(false) {}
BOUNDS_BOTTOM)), style("default"), format("image/png"), rest(false),
yx(false) {}
Range MapSource::zooms(QXmlStreamReader &reader)

View File

@ -167,7 +167,7 @@ bool WMS::parseCapabilities(const QString &path, const Setup &setup)
_errorString = ctx.setup.layer() + ": layer not provided";
return false;
}
if (!ctx.style) {
if (!ctx.style && ctx.setup.style() != "default") {
_errorString = ctx.setup.style() + ": style not provided";
return false;
}