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:
parent
e3e8fdbacf
commit
60cc869ade
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user