From: Uwe Stöhr Date: Wed, 26 Oct 2011 19:32:33 +0000 (+0000) Subject: backport fix for bug #7851 X-Git-Tag: 2.0.2~108 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=af227ddd8bae936e4e04b54a96f28a457f732eae;p=features.git backport fix for bug #7851 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40017 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetLine.cpp b/src/insets/InsetLine.cpp index 515efbba4f..86a7e5cd05 100644 --- a/src/insets/InsetLine.cpp +++ b/src/insets/InsetLine.cpp @@ -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"))); diff --git a/status.20x b/status.20x index 4deec4f29a..347c86ed37 100644 --- a/status.20x +++ b/status.20x @@ -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