diff --git a/components/lazmapviewer/source/mvengine.pas b/components/lazmapviewer/source/mvengine.pas index a26685d8c..5400bc91a 100644 --- a/components/lazmapviewer/source/mvengine.pas +++ b/components/lazmapviewer/source/mvengine.pas @@ -1107,6 +1107,7 @@ end; procedure TMapViewerEngine.SetCachePath(AValue: String); begin + ForceDirectories(aValue); Cache.BasePath := aValue; end; diff --git a/components/lazmapviewer/source/mvmapviewer.pas b/components/lazmapviewer/source/mvmapviewer.pas index 829a3ab08..52095370f 100644 --- a/components/lazmapviewer/source/mvmapviewer.pas +++ b/components/lazmapviewer/source/mvmapviewer.pas @@ -384,7 +384,7 @@ end; procedure TMapView.SetCachePath(AValue: String); begin - Engine.CachePath := AValue; //CachePath; + Engine.CachePath := AValue; end; procedure TMapView.SetCenter(AValue: TRealPoint);