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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user