]> git.lyx.org Git - lyx.git/blobdiff - src/LyXSendto.C
Change the latex font names in order to match the names of type1inst.
[lyx.git] / src / LyXSendto.C
index 881ad276eb148cc2b4a2f4fe37e04e4937652702..d457dc7fa11cf4e322c6015f24d3ca7a4fabe3fd 100644 (file)
 #include "buffer.h"
 #include "lyx_gui_misc.h"
 #include "support/syscall.h"
+#include "support/lstrings.h"
 #include "gettext.h"
 #include "bufferview_funcs.h"
 #include "exporter.h"
+#include "BufferView.h"
 
 extern FD_form_sendto * fd_form_sendto;
 extern BufferView * current_view;
@@ -78,8 +80,8 @@ void SendtoApplyCB(FL_OBJECT *, long)
     command = subst(command, "$$FName", fname);
     command += " &"; // execute in background
     // push directorypath, if necessary 
-    string path = OnlyPath(buffer->fileName());
-    if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)){
+    string path = buffer->filePath();
+    if (lyxrc.use_tempdir || !IsDirWriteable(path)){
         path = buffer->tmppath;
     }
     Path p(path);