]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.cpp
try to pass a Buffer & to inset construction if some buffer(param)
[lyx.git] / src / insets / InsetListings.cpp
index 5bf4e8cbd73960ba1539334322e49cb7b9cc674e..0b63ec28e6783c45f3bd06a9da710068096c7d42 100644 (file)
@@ -41,8 +41,8 @@ namespace lyx {
 char const lstinline_delimiters[] =
        "!*()-=+|;:'\"`,<.>/?QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm";
 
-InsetListings::InsetListings(BufferParams const & bp, InsetListingsParams const & par)
-       : InsetCollapsable(bp, par.status())
+InsetListings::InsetListings(Buffer const & buf, InsetListingsParams const & par)
+       : InsetCollapsable(buf, par.status())
 {}
 
 
@@ -71,7 +71,7 @@ Inset::DisplayType InsetListings::display() const
 
 void InsetListings::updateLabels(ParIterator const & it)
 {
-       Counters & cnts = buffer().params().textClass().counters();
+       Counters & cnts = buffer().params().documentClass().counters();
        string const saveflt = cnts.current_float();
 
        // Tell to captions what the current float is