X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e71fd398b8b8041ad69acf1c6a8938e77a1db2c9..56b9925b116dfa58028fccb2556852f2da2ab9ac:/src/common/prntbase.cpp diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index c16bc4fd65..c047f6d3cd 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -772,12 +772,6 @@ bool wxPrintPreviewBase::RenderPage(int pageNum) int actualWidth = (int)(zoomScale*m_pageWidth*m_previewScale); int actualHeight = (int)(zoomScale*m_pageHeight*m_previewScale); - int x = (int)((canvasWidth - actualWidth)/2.0); - if (x < m_leftMargin) - x = m_leftMargin; - // int y = m_topMargin; - - if (!m_previewBitmap) { m_previewBitmap = new wxBitmap((int)actualWidth, (int)actualHeight);