]> git.lyx.org Git - features.git/commitdiff
Was forgetting this
authorEnrico Forestieri <forenr@lyx.org>
Fri, 26 Jun 2015 20:54:23 +0000 (22:54 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 26 Jun 2015 20:54:23 +0000 (22:54 +0200)
src/support/lstrings.cpp

index 3b903c83de947e7fc12e206f710b812bf8180783..0036d16274941a3448198e8f68ec19492b1fe31c 100644 (file)
@@ -1407,7 +1407,6 @@ std::string formatFPNumber(double x)
        os << std::fixed;
        // Prevent outputs of 23.4200000000000017 but output small numbers
        // with at least 6 significant digits.
-       bool const neg = x < 0;
        double const logarithm = log10(abs(x));
        os << std::setprecision(max(6 - static_cast<int>(round(logarithm)), 0)) << x;
        string result = os.str();