]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.cpp
Amend 6c3447c8: FindAdv: sometimes a space is added on some math symbols
[lyx.git] / src / Counters.cpp
index 9376ef0aac78aa0e751757ad786e5d6a93bff917..703125f537f16d4a84723d16f0d40cb0f494906f 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "Counters.h"
 #include "Layout.h"
-#include "Lexer.h"
 
 #include "support/convert.h"
 #include "support/counter_reps.h"
@@ -23,6 +22,7 @@
 #include "support/docstring.h"
 #include "support/gettext.h"
 #include "support/lassert.h"
+#include "support/Lexer.h"
 #include "support/lstrings.h"
 
 #include <algorithm>
@@ -118,7 +118,7 @@ bool Counter::read(Lexer & lex)
                                lex.next();
                                docstring const value = lex.getDocString();
                                ref_formats_[key] = value;
-                               LYXERR0("refformat: " << key << " => " << value);
+                               // LYXERR0("refformat: " << key << " => " << value);
                                break;
                        }
                        case CT_LABELSTRING:
@@ -631,7 +631,7 @@ docstring Counters::formattedCounter(docstring const & name,
        Counter const & ctr = it->second;
 
        docstring const value = theCounter(name, lang);
-       docstring const format =
+       docstring const format =
                translateIfPossible(counterLabel(ctr.refFormat(prex), lang), lang);
        if (format.empty())
                return value;