]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Liason.C
fix starting up which binary is really a symlink; make sure insetinclude file browser...
[lyx.git] / src / frontends / Liason.C
index 85172e3cfe2fc348629d5fefc4e26e4ccfb23d99..f1fe2c8dcbdf303a2a48b2b8175ea43f83579ba5 100644 (file)
@@ -4,7 +4,7 @@
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
 #include "lyxrc.h"
 #include "PrinterParams.h"
 #include "lyx_gui_misc.h"
+#include "support/LAssert.h"
 #include "support/lstrings.h"
 #include "support/filetools.h"
 #include "support/path.h"
 #include "exporter.h"
 #include "converter.h"
 #include "support/syscall.h"
-#include "lyxfunc.h"
 
 using std::endl;
 
@@ -106,8 +106,8 @@ bool printBuffer(Buffer * buffer, PrinterParams const & pp)
                return false;
 
        // Push directory path.
-       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);
@@ -158,7 +158,7 @@ bool printBuffer(Buffer * buffer, PrinterParams const & pp)
 
 void setMinibuffer(LyXView * lv, string const & msg)
 {
-       Assert(lv);
+       lyx::Assert(lv);
        lv->message(msg);
 }