summaryrefslogtreecommitdiff
path: root/app/bin/dxfoutput.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-03-19 19:55:58 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-03-19 19:55:58 +0100
commitd1a8285f818eb7e5c3d6a05709ea21a808490b8c (patch)
tree326578f0505cbed07cfe60de530022822dc237ac /app/bin/dxfoutput.c
parent16e9630b79f0a7a90c6cedb6781175bb8b337dc1 (diff)
New upstream version 5.1.0upstream/5.1.0
Diffstat (limited to 'app/bin/dxfoutput.c')
-rw-r--r--app/bin/dxfoutput.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/app/bin/dxfoutput.c b/app/bin/dxfoutput.c
index 91a822f..69c6df4 100644
--- a/app/bin/dxfoutput.c
+++ b/app/bin/dxfoutput.c
@@ -26,9 +26,6 @@
#ifdef WINDOWS
#include <io.h>
#include <windows.h>
- #if _MSC_VER >=1400
- #define strdup _strdup
- #endif
#else
#include <errno.h>
#endif
@@ -36,11 +33,18 @@
#include <xtrkcad-config.h>
#include <locale.h>
#include <assert.h>
-#include "track.h"
-#include "i18n.h"
+
#include <dynstring.h>
+#include "cselect.h"
+#include "custom.h"
#include "dxfformat.h"
+#include "fileio.h"
+#include "i18n.h"
+#include "messages.h"
+#include "paths.h"
+#include "track.h"
+#include "utility.h"
static struct wFilSel_t * exportDXFFile_fs;
@@ -224,7 +228,7 @@ void DoExportDXF(void)
exportDXFFile_fs = wFilSelCreate(mainW, FS_SAVE, 0, _("Export to DXF"),
sDXFFilePattern, DoExportDXFTracks, NULL);
- wFilSelect(exportDXFFile_fs, curDirName);
+ wFilSelect(exportDXFFile_fs, GetCurrentPath(DXFPATHKEY));
}