Skip to content

Commit

Permalink
Small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-kutz committed Sep 26, 2024
1 parent 81b6933 commit 210a9e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ object GpxUtilities {

fun writeGpxFile(file: KFile, gpxFile: GpxFile): KException? {
return try {
file.getParentFile()?.createDirectories()
if (KAlgorithms.isEmpty(gpxFile.path)) {
file.getParentFile()?.createDirectories()
gpxFile.path = if (file.isAbsolute()) file.path() else file.absolutePath()
}
writeGpx(file, null, gpxFile, null)
Expand Down

0 comments on commit 210a9e2

Please sign in to comment.