Allow negative line spacing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3152,7 +3152,7 @@ bool wxRichTextParagraph::Layout(wxDC& dc, const wxRect& rect, int style)
|
|||||||
int lineSpacing = 0;
|
int lineSpacing = 0;
|
||||||
|
|
||||||
// Let's assume line spacing of 10 is normal, 15 is 1.5, 20 is 2, etc.
|
// Let's assume line spacing of 10 is normal, 15 is 1.5, 20 is 2, etc.
|
||||||
if (attr.GetLineSpacing() > 10 && attr.GetFont().Ok())
|
if (attr.GetLineSpacing() != 10 && attr.GetFont().Ok())
|
||||||
{
|
{
|
||||||
dc.SetFont(attr.GetFont());
|
dc.SetFont(attr.GetFont());
|
||||||
lineSpacing = (ConvertTenthsMMToPixels(dc, dc.GetCharHeight()) * attr.GetLineSpacing())/10;
|
lineSpacing = (ConvertTenthsMMToPixels(dc, dc.GetCharHeight()) * attr.GetLineSpacing())/10;
|
||||||
|
Reference in New Issue
Block a user