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
This commit is contained in:
Uwe Stöhr 2011-10-26 19:32:33 +00:00
parent 4cd6b0f753
commit af227ddd8b
2 changed files with 3 additions and 1 deletions

View 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")));

View 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