]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLine.cpp
tex2lyx/text.cpp: fix typos
[lyx.git] / src / insets / InsetLine.cpp
index 515efbba4f50931ec144fbeb11a7285435e811c6..86a7e5cd056c96e58c5c82caa4373f9984394a3c 100644 (file)
@@ -121,7 +121,7 @@ void InsetLine::metrics(MetricsInfo & mi, Dimension & dim) const
        dim.wid = max(minw, max(dim.wid, -dim.wid));
 
        Length height = Length(to_ascii(getParam("height")));
-       height_ = height.inPixels(dim.height(), fm.width(char_type('M')));
+       height_ = height.inPixels(max_width, fm.width(char_type('M')));
 
        // get the length of the parameters in pixels
        Length offset = Length(to_ascii(getParam("offset")));