]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.C
Move #includes out of header files.
[lyx.git] / src / lyx_cb.C
index d148852bc185468a9dbc228377dd3af2392e5a16..a58ed4ff6e6cc25d4ae95700f63a6b73c3c2371b 100644 (file)
 #include "support/FileInfo.h"
 #include "support/filetools.h"
 #include "support/forkedcall.h"
+#include "support/lstrings.h"
+#include "support/lyxlib.h"
 #include "support/path.h"
 #include "support/path_defines.h"
+#include "support/os.h"
 #include "support/systemcall.h"
-#include "support/lstrings.h"
 
 #include <fstream>
 #include <algorithm>
@@ -434,7 +436,7 @@ string const getPossibleLabel(BufferView const & bv)
            lyxrc.label_init_length < 0)
                text.erase();
 
-       string par_text = pit->asString(bv.buffer(), false);
+       string par_text = pit->asString(*bv.buffer(), false);
        for (int i = 0; i < lyxrc.label_init_length; ++i) {
                if (par_text.empty())
                        break;