LazMapViewer: Make sure that the Cache path exists.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8107 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2021-09-30 22:16:04 +00:00
parent c155c7646e
commit ca72aa00be
2 changed files with 2 additions and 1 deletions

View File

@ -1107,6 +1107,7 @@ end;
procedure TMapViewerEngine.SetCachePath(AValue: String);
begin
ForceDirectories(aValue);
Cache.BasePath := aValue;
end;

View File

@ -384,7 +384,7 @@ end;
procedure TMapView.SetCachePath(AValue: String);
begin
Engine.CachePath := AValue; //CachePath;
Engine.CachePath := AValue;
end;
procedure TMapView.SetCenter(AValue: TRealPoint);