]> git.lyx.org Git - features.git/commitdiff
backport fix for bug #7851
authorUwe Stöhr <uwestoehr@web.de>
Wed, 26 Oct 2011 19:32:33 +0000 (19:32 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 26 Oct 2011 19:32:33 +0000 (19:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40017 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetLine.cpp
status.20x

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")));
index 4deec4f29a763fb4078eaf7866119d9bc84fe3a0..347c86ed373eaed4f3f164b8e5f6a56aba38fbd5 100644 (file)
@@ -196,6 +196,8 @@ What's new
 - Make cursor position after paste independent of where the pasted material
   comes from (bug 3821).
 
+- Fix display of thickness of horizontal lines (bug 7851).
+
 
 * ADVANCED FIND AND REPLACE