]> git.lyx.org Git - lyx.git/blobdiff - src/LyXSendto.C
Michael's latest batch of new gnome files.
[lyx.git] / src / LyXSendto.C
index f0d71077eb33479f3d1a56305332d11fce4f9e52..d457dc7fa11cf4e322c6015f24d3ca7a4fabe3fd 100644 (file)
@@ -80,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);