X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLength.h;h=2a8f0642108602fb70c8f01195f47fff31e4322d;hb=21e4e939be5e7f02ca1fc1c25b1fd15caf60ae6d;hp=ef17bac760671d55c933f27e92451cc19064eee7;hpb=66fa801e74e1775b31008df548332436ce79e2e1;p=lyx.git diff --git a/src/Length.h b/src/Length.h index ef17bac760..2a8f064210 100644 --- a/src/Length.h +++ b/src/Length.h @@ -102,6 +102,7 @@ public: */ int inPixels(MetricsBase const &) const; /// return the value in Big Postscript points. + /// Caution: Inaccurate for em, ex, mu and percent units. int inBP() const; /// return the default unit (centimeter or inch) @@ -110,6 +111,8 @@ public: friend bool isValidLength(std::string const & data, Length * result); private: + /// Convert value to inch for text width and em width given in inch + double inInch(double text_width, double em_width) const; /// double val_; ///