]> git.lyx.org Git - lyx.git/blobdiff - src/client/debug.C
fix bug 2089: Touching Navigate menu crashes Lyx when a TOC inset is in a section...
[lyx.git] / src / client / debug.C
index 5da41b9f67398abb4820664bd78dafcffcb5dde7..f3bb53532eceb4f656cf9c9eb2ded439922ace0a 100644 (file)
@@ -14,6 +14,7 @@
 #include "debug.h"
 #include "gettext.h"
 
+#include "support/convert.h"
 #include "support/lstrings.h"
 
 #include <iostream>
@@ -22,7 +23,6 @@
 using lyx::support::ascii_lowercase;
 using lyx::support::bformat;
 using lyx::support::isStrInt;
-using lyx::support::strToInt;
 
 using std::setw;
 using std::string;
@@ -40,7 +40,7 @@ struct error_item {
 error_item errorTags[] = {
        { Debug::NONE,      "none",      N_("No debugging message")},
        { Debug::INFO,      "info",      N_("General information")},
-       { Debug::DEBUG,  "debug",  N_("Developers general debug messages")},
+       { Debug::DEBUG,     "debug",     N_("Developers' general debug messages")},
        { Debug::ANY,       "any",       N_("All debugging messages")}
 };
 
@@ -61,7 +61,7 @@ lyx_debug_trait::type lyx_debug_trait::value(string const & val)
                        break;
                // Is it a number?
                if (isStrInt(tmp))
-                       l |= static_cast<type>(strToInt(tmp));
+                       l |= static_cast<type>(convert<int>(tmp));
                else
                // Search for an explicit name
                for (int i = 0 ; i < numErrorTags ; ++i)