]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.cpp
compile fix
[lyx.git] / src / frontends / qt4 / GuiDocument.cpp
index 4eedfbabefa335262e8f21bebefc3dbbd17f9e03..0ce3284cf50e468641c2590205c63338138f65b6 100644 (file)
@@ -1227,10 +1227,10 @@ void GuiDocument::browseLayout()
                qt_("Local layout file"), filter, false,
                label1, dir1);
 
-       if (!suffixIs(fromqstr(file), ".layout"))
+       if (!file.endsWith(".layout"))
                return;
 
-       FileName layoutFile = makeAbsPath(fromqstr(file),
+       FileName layoutFile = support::makeAbsPath(fromqstr(file),
                fromqstr(bufferFilepath()));
        
        // load the layout file