mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-26 04:00:49 +01:00
The "default" style does not to be set wxplicitly
This commit is contained in:
parent
e3e8fdbacf
commit
60cc869ade
@ -15,7 +15,8 @@
|
|||||||
|
|
||||||
MapSource::Config::Config() : type(TMS), zooms(ZOOM_MIN, ZOOM_MAX),
|
MapSource::Config::Config() : type(TMS), zooms(ZOOM_MIN, ZOOM_MAX),
|
||||||
bounds(Coordinates(BOUNDS_LEFT, BOUNDS_TOP), Coordinates(BOUNDS_RIGHT,
|
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)
|
Range MapSource::zooms(QXmlStreamReader &reader)
|
||||||
|
@ -167,7 +167,7 @@ bool WMS::parseCapabilities(const QString &path, const Setup &setup)
|
|||||||
_errorString = ctx.setup.layer() + ": layer not provided";
|
_errorString = ctx.setup.layer() + ": layer not provided";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!ctx.style) {
|
if (!ctx.style && ctx.setup.style() != "default") {
|
||||||
_errorString = ctx.setup.style() + ": style not provided";
|
_errorString = ctx.setup.style() + ": style not provided";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user