]> git.lyx.org Git - lyx.git/blobdiff - src/lengthcommon.cpp
Do not throw exceptions here either. See r22806.
[lyx.git] / src / lengthcommon.cpp
index ce37b2379e945076ce462d9396f31d82ec0d1999..c1360915f51578fa6dfa83c4e45db341fc31f887 100644 (file)
@@ -25,8 +25,8 @@ namespace lyx {
 
 // the latex units
 char const * const unit_name[] = {
-       "sp", "pt", "bp", "dd", "mm", "pc",
-       "cc", "cm", "in", "ex", "em", "mu",
+       "bp", "cc", "cm", "dd", "em", "ex", "in", "mm", "mu",
+       "pc", "pt", "sp",
        "text%",  "col%", "page%", "line%",
        "theight%", "pheight%", "" };
 
@@ -34,9 +34,10 @@ int const num_units = int(sizeof(unit_name) / sizeof(unit_name[0]) - 1);
 
 // the LyX gui units
 char const * const unit_name_gui[] = {
-       N_("sp"), N_("pt"), N_("bp"), N_("dd"), N_("mm"), N_("pc"),
-       N_("cc[[unit of measure]]"), N_("cm"), N_("in"), N_("ex"), N_("em"), N_("mu[[unit of measure]]"),
-       N_("Text Width %"), N_("Column Width %"), N_("Page Width %"), N_("Line Width %"),
+       N_("bp"), N_("cc[[unit of measure]]"), N_("cm"), N_("dd"), N_("em"),
+       N_("ex"), N_("in"), N_("mm"), N_("mu[[unit of measure]]"), N_("pc"),
+       N_("pt"), N_("sp"), N_("Text Width %"),
+       N_("Column Width %"), N_("Page Width %"), N_("Line Width %"),
        N_("Text Height %"), N_("Page Height %"), "" };
 
 Length::UNIT unitFromString(string const & data)