]> git.lyx.org Git - features.git/commitdiff
Cosmetics.
authorRichard Heck <rgheck@comcast.net>
Thu, 28 Feb 2008 04:05:38 +0000 (04:05 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 28 Feb 2008 04:05:38 +0000 (04:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23304 a592a061-630c-0410-9148-cb99ea01b6c8

src/BaseClassList.cpp

index 8baa64abf5886445757a8b3d53b69f3154d1e22d..91e86bf60aac9a131d6cbdfcc1aedec3a6d39b5b 100644 (file)
@@ -197,10 +197,10 @@ BaseClassList::addTextClass(string const & textclass, string const & path)
                        // look for the \DeclareXXXClass line
                        smatch sub;
                        if (regex_match(line, sub, reg)) {
-                               // returns: whole string, classtype (not used here), first option, description
-                               BOOST_ASSERT(sub.size()==4);
+                               // returns: whole string, classtype (not used here), class name, description
+                               BOOST_ASSERT(sub.size() == 4);
                                // now, create a TextClass with description containing path information
-                               TextClass tmpl(textclass, sub.str(2)==""?textclass:sub.str(2),
+                               TextClass tmpl(textclass, sub.str(2) == "" ? textclass : sub.str(2),
                                        sub.str(3) + " <" + path + ">", true);
                                if (lyxerr.debugging(Debug::TCLASS))
                                        tmpl.load(path);