Corrected scale factor for the use of DC PPI instead of printer PPI in wxRTC code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -345,8 +345,8 @@ void wxRichTextPrintout::CalculateScaling(wxDC* dc, wxRect& textRect, wxRect& he
|
||||
|
||||
// The dimensions used for indentation etc. have to be unscaled
|
||||
// during printing to be correct when scaling is applied.
|
||||
// if (!IsPreview())
|
||||
m_richTextBuffer->SetScale(scale);
|
||||
// Also, correct the conversions in wxRTC using DC instead of print DC.
|
||||
m_richTextBuffer->SetScale(scale * float(dc->GetPPI().x)/float(ppiPrinterX));
|
||||
|
||||
// Calculate margins
|
||||
int marginLeft = wxRichTextObject::ConvertTenthsMMToPixels(ppiPrinterX, m_marginLeft);
|
||||
|
Reference in New Issue
Block a user