]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutModuleList.cpp
Fix bug #12609
[lyx.git] / src / LayoutModuleList.cpp
index b2e9067ed288c11075426b29505f0a0ba2a28173..de1324ccb5b494eda0844b82a36090691a294beb 100644 (file)
@@ -53,6 +53,18 @@ bool LayoutModuleList::adaptToBaseClass(LayoutFile const * const lay,
 }
 
 
+string LayoutModuleList::asString() const
+{
+       string mods;
+       for (auto const & mod : lml_)
+               mods += mod + ',';
+       // remove trailing comma
+       if (!mods.empty())
+               mods.pop_back();
+       return mods;
+}
+
+
 bool LayoutModuleList::moduleCanBeAdded(string const & modName,
                LayoutFile const * const lay) const
 {