Skip to content

Commit 9465c3c

Browse files
committed
Fix icon column width calculation on HiDPI Windows
1 parent 518cb24 commit 9465c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/edlistctrl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ void PoeditListCtrl::CreateColumns()
650650
m_colID = m_colIcon = m_colSource = m_colTrans = nullptr;
651651

652652
#if defined(__WXMSW__)
653-
int iconWidth = wxArtProvider::GetBitmap("StatusError").GetSize().x + 6 /*wxDVC internal padding*/;
653+
int iconWidth = wxArtProvider::GetBitmap("StatusError").GetSize().x + FromDIP(6) /*wxDVC internal padding*/;
654654
#else
655655
int iconWidth = PX(16);
656656
#endif

0 commit comments

Comments
 (0)