]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListingsParams.cpp
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / insets / InsetListingsParams.cpp
index 54707418dfa54a9091d1492b31a10de22543eaf1..9390d6bbe4549867005cfe5e2ed3b2c8add7cecf 100644 (file)
@@ -948,12 +948,12 @@ docstring ParValidator::validate(string const & name,
 }
 
 
-bool ParValidator::onoff(string const & name) const
+bool ParValidator::onoff(string const & key) const
 {
        int p = InsetListingsParams::package();
 
        // locate name in parameter table
-       ListingsParams::const_iterator it = all_params_[p].find(name);
+       ListingsParams::const_iterator it = all_params_[p].find(key);
        if (it != all_params_[p].end())
                return it->second.onoff_;
        else