From 5ddd2174d54ecf90d92af264d83b37044ae93a2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Tue, 25 Oct 2011 23:22:55 +0000 Subject: [PATCH] InsetLine.cpp: fix bug #7851 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39984 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetLine.cpp | 2 +- 1 file changed, 1 insertion(+), 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"))); -- 2.39.2