X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXSendto.C;h=5f672ac07bd0e4da087e725e2aaf06e06c7d0205;hb=5702f22ef0ea3d167fc5f327002d7006eef657b4;hp=881ad276eb148cc2b4a2f4fe37e04e4937652702;hpb=7ec7c9da44662529e8a0ad4d60836df43a059ecd;p=lyx.git diff --git a/src/LyXSendto.C b/src/LyXSendto.C index 881ad276eb..5f672ac07b 100644 --- a/src/LyXSendto.C +++ b/src/LyXSendto.C @@ -10,9 +10,11 @@ #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; @@ -79,7 +81,7 @@ void SendtoApplyCB(FL_OBJECT *, long) command += " &"; // execute in background // push directorypath, if necessary string path = OnlyPath(buffer->fileName()); - if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)){ + if (lyxrc.use_tempdir || !IsDirWriteable(path)){ path = buffer->tmppath; } Path p(path);