X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flengthcommon.cpp;h=217c22b6048c48e393d8ddfe8309c01ec49950d9;hb=ee0860e403d144308b1cdcb0ef223bc34008c64b;hp=a226a7e2e73bad977a8b64ff129bfb68582456cc;hpb=67af5a53880c87bcf258107f9e8716ae9746c15c;p=lyx.git diff --git a/src/lengthcommon.cpp b/src/lengthcommon.cpp index a226a7e2e7..217c22b604 100644 --- a/src/lengthcommon.cpp +++ b/src/lengthcommon.cpp @@ -47,6 +47,7 @@ char const * const unit_name_gui[] = { N_("Column Width %"), N_("Page Width %"), N_("Line Width %"), N_("Text Height %"), N_("Page Height %"), "" }; + Length::UNIT unitFromString(string const & data) { int i = 0; @@ -208,6 +209,7 @@ LaTeXLength table[] = { } // namespace anon + const char * stringFromUnit(int unit) { if (unit < 0 || unit > num_units)