]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
final(?) tweaks for removeAutoInsets() and removed one redundant conditional clause...
[lyx.git] / src / BufferView_pimpl.C
index cf671b5216472648222c3c519c5acc404f43e424..11506b505e4237eaff2e99df4b8123146c689989 100644 (file)
@@ -1445,7 +1445,7 @@ void BufferView::Pimpl::MenuInsertLyXFile(string const & filen)
                string initpath = lyxrc.document_path;
 
                if (available()) {
-                       string const trypath = owner_->buffer()->filepath;
+                       string const trypath = owner_->buffer()->filePath();
                        // If directory is writeable, use this as default.
                        if (IsDirWriteable(trypath))
                                initpath = trypath;