]> git.lyx.org Git - lyx.git/blob - src/support/path.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / support / path.C
1 /**
2  * \file path.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #include "path.h"
14
15 namespace lyx {
16 namespace support {
17
18 int Path::pop()
19 {
20         if (popped_) {
21                 // should throw an exception
22                 // throw logical_error();
23                 return 0;
24         }
25
26         if (chdir(pushedDir_)) {
27                 // should throw an exception
28                 // throw DirChangeError();
29         }
30         popped_ = true;
31
32         return 0;
33 }
34
35 } // namespace support
36 } // namespace lyx