From af227ddd8bae936e4e04b54a96f28a457f732eae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 26 Oct 2011 19:32:33 +0000 Subject: [PATCH] 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 --- src/insets/InsetLine.cpp | 2 +- status.20x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5