]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLine.cpp
Replace a half-baked attempt to remove \lyxdot from the directory part of
[lyx.git] / src / insets / InsetLine.cpp
index 022392d46234acdee8ce9e667538f5efab4c7e9b..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")));
@@ -199,8 +199,7 @@ int InsetLine::docbook(odocstream & os, OutputParams const &) const
 
 docstring InsetLine::xhtml(XHTMLStream & xs, OutputParams const &) const
 {
-       xs << html::CompTag("hr");
-       xs.cr();
+       xs << html::CompTag("hr") << html::CR();
        return docstring();
 }