X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cebf2fec3d70dcb0de6e1d4a7887c0342f196fa4..dfe8399aa013a1fa6487d008bf1176078f218c6d:/src/common/cmndata.cpp diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index eaf2321f5e..2fe0f2ff51 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -1512,12 +1512,9 @@ void wxPageSetupDialogData::CalculatePaperSizeFromId() wxSize sz = wxThePrintPaperDatabase->GetSize(m_printData.GetPaperId()); - if (sz.x != 0) - { - // sz is in 10ths of a mm, so multiply by 10. - m_paperSize.x = sz.x * 10; - m_paperSize.y = sz.y * 10; - } + // sz is in 10ths of a mm, while paper size is in mm + m_paperSize.x = sz.x / 10; + m_paperSize.y = sz.y / 10; } #endif // wxUSE_PRINTING_ARCHITECTURE