#include "support/filetools.h"
#include "BufferView.h"
#include "LyXView.h"
+#include "support/LOstream.h"
#include "commandtags.h"
#include "buffer.h"
#include "gettext.h"
: InsetCommand(p)
{
string const fn = p.getContents();
- setContents(MakeAbsPath(fn, OnlyPath(bf.fileName())));
+ setContents(MakeAbsPath(fn, bf.filePath()));
}