]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFonts.cpp
Fix InsetListings::getCaption() for std::regex
[lyx.git] / src / LaTeXFonts.cpp
index e37ad2e945269ac5fcbcc459057064724e1380c2..676179f5a5f7fa436e1ee808d54e92049ab761a8 100644 (file)
@@ -193,6 +193,15 @@ docstring const LaTeXFont::getUsedFont(bool ot1, bool complete, bool nomath)
 }
 
 
+docstring const LaTeXFont::getUsedPackage(bool ot1, bool complete, bool nomath)
+{
+       docstring const usedfont = getUsedFont(ot1, complete, nomath);
+       if (usedfont.empty())
+               return docstring();
+       return theLaTeXFonts().getLaTeXFont(usedfont).package();
+}
+
+
 string const LaTeXFont::getAvailablePackage(bool dryrun)
 {
        if (package_.empty())