X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXSendto.C;h=5f672ac07bd0e4da087e725e2aaf06e06c7d0205;hb=5702f22ef0ea3d167fc5f327002d7006eef657b4;hp=f0d71077eb33479f3d1a56305332d11fce4f9e52;hpb=da7667356810c250a0875649d0b0291c90462c65;p=lyx.git diff --git a/src/LyXSendto.C b/src/LyXSendto.C index f0d71077eb..5f672ac07b 100644 --- a/src/LyXSendto.C +++ b/src/LyXSendto.C @@ -81,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);