]> git.lyx.org Git - lyx.git/blobdiff - src/Length.h
prepare Qt 5.6 builds
[lyx.git] / src / Length.h
index ef17bac760671d55c933f27e92451cc19064eee7..2a8f0642108602fb70c8f01195f47fff31e4322d 100644 (file)
@@ -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_;
        ///