]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
do what the FIXME suggested
[lyx.git] / src / TextClass.cpp
index aa2f307330739b6dc00db936ac672c0514cdaf4f..6342c1f6914be680ffc8c03874dc599fd1fce9fa 100644 (file)
@@ -763,8 +763,12 @@ void TextClass::readFloat(Lexer & lexrc)
                            style, name, listName, builtin);
                floatlist_->newFloat(fl);
                // each float has its own counter
-               counters_->newCounter(from_ascii(type), from_ascii(within), 
+               counters_->newCounter(from_ascii(type), from_ascii(within),
                                      docstring(), docstring());
+               // also define sub-float counters
+               docstring const subtype = "sub-" + from_ascii(type);
+               counters_->newCounter(subtype, from_ascii(type),
+                                     "\\alph{" + subtype + "}", docstring());
        }
 
        lexrc.popTable();