Fix regression in wxDC::GetPPI().y under GTK 2

This fixes a typo in 3dc16a7419 which
prevented m_mm_to_pix_y from ever being set to non-zero value.

Closes #18425.
This commit is contained in:
Dummy
2019-06-28 13:55:45 +02:00
committed by Vadim Zeitlin
parent 9aef9e59fc
commit 668f74f4d9

View File

@@ -1452,7 +1452,7 @@ double wxDCImpl::GetMMToPXx() const
double wxDCImpl::GetMMToPXy() const double wxDCImpl::GetMMToPXy() const
{ {
if ( wxIsNullDouble(m_mm_to_pix_x) ) if ( wxIsNullDouble(m_mm_to_pix_y) )
{ {
m_mm_to_pix_y = (double)wxGetDisplaySize().GetHeight() / m_mm_to_pix_y = (double)wxGetDisplaySize().GetHeight() /
(double)wxGetDisplaySizeMM().GetHeight(); (double)wxGetDisplaySizeMM().GetHeight();