]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
whitespace only
[lyx.git] / src / Paragraph.cpp
index 3f0a06d62507b801d7fc9eca1a0d1af007a971bf..52714b8f118c9e98e09900eae5643ccb4d2af441 100644 (file)
@@ -1620,7 +1620,7 @@ docstring Paragraph::expandLabel(Layout const & layout,
 
        if (fmt.empty() && layout.labeltype == LABEL_COUNTER 
            && !layout.counter.empty())
-               fmt = "\\the" + layout.counter;
+               return tclass.counters().theCounter(layout.counter);
 
        // handle 'inherited level parts' in 'fmt',
        // i.e. the stuff between '@' in   '@Section@.\arabic{subsection}'