mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 15:43:25 +00:00
fix derive file style in constructor
This commit is contained in:
@@ -133,7 +133,7 @@ export class GPXFile extends GPXTreeNode<Track> {
|
||||
}
|
||||
if (gpx.hasOwnProperty('_data')) {
|
||||
this._data = gpx._data;
|
||||
|
||||
}
|
||||
if (!this._data.hasOwnProperty('style')) {
|
||||
let style = this.getStyle();
|
||||
let fileStyle = {};
|
||||
@@ -150,7 +150,6 @@ export class GPXFile extends GPXTreeNode<Track> {
|
||||
this.setStyle(fileStyle);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.attributes = {};
|
||||
this.metadata = {};
|
||||
|
Reference in New Issue
Block a user