diff --git a/src/frontends/controllers/ChangeLog b/src/frontends/controllers/ChangeLog index aef1be6c6f..c0635550f0 100644 --- a/src/frontends/controllers/ChangeLog +++ b/src/frontends/controllers/ChangeLog @@ -1,3 +1,8 @@ +2001-09-24 Angus Leeming + + * ControlRef.C (getBufferList): use MakeDisplayPath on the list. + * (getLabelList): use MakeAbsPath on the buffer name passed to it. + 2001-09-21 Angus Leeming * ControlRef.h (disconnectOnApply): new method. Set to true. diff --git a/src/frontends/controllers/ControlRef.C b/src/frontends/controllers/ControlRef.C index 62148f588a..32a83d1986 100644 --- a/src/frontends/controllers/ControlRef.C +++ b/src/frontends/controllers/ControlRef.C @@ -26,6 +26,7 @@ #include "buffer.h" #include "lyxfunc.h" #include "bufferlist.h" +#include "support/filetools.h" // MakeAbsPath, MakeDisplayPath using SigC::slot; using std::vector; @@ -43,7 +44,7 @@ ControlRef::ControlRef(LyXView & lv, Dialogs & d) vector const ControlRef::getLabelList(string const & name) const { - Buffer * buffer = bufferlist.getBuffer(name); + Buffer * buffer = bufferlist.getBuffer(MakeAbsPath(name)); if (!buffer) buffer = lv_.buffer(); return buffer->getLabelList(); @@ -65,7 +66,14 @@ void ControlRef::gotoBookmark() const vector const ControlRef::getBufferList() const { - return bufferlist.getFileNames(); + + vector buffers = bufferlist.getFileNames(); + for (vector::iterator it = buffers.begin(); + it != buffers.end(); ++it) { + *it = MakeDisplayPath(*it); + } + + return buffers; }