Pass size to wxToolbar::SetToolBitmapSize() given in logical pixels

Previously the size was given DIPs but now logical pixels are used.

(cherry picked from commit ff7476fcd0f3fccad19b849511b73cbfd9a317bd)
This commit is contained in:
Artur Wieczorek 2023-02-05 19:06:25 +01:00 committed by Vadim Zeitlin
parent c843096a69
commit a2c6620907
2 changed files with 2 additions and 1 deletions

View File

@ -268,6 +268,7 @@ All (GUI):
- Update wxOwnerDrawnComboBox best size when adding items (Reza Karimi, #23681).
- Keep wxProgressDialog size when updating the message (Oleg Samarin, #23727).
- Fix crash when deleting selected item in wxGenericListCtrl (#23729).
- Use DIPs for toolbar image sizes in wxPropertyGrid.
wxGTK:

View File

@ -1665,7 +1665,7 @@ void wxPropertyGridManager::RecreateControls()
wxDefaultPosition,
wxDefaultSize,
toolBarFlags);
m_pToolbar->SetToolBitmapSize(wxSize(16, 15));
m_pToolbar->SetToolBitmapSize(FromDIP(wxSize(16, 15)));
#if defined(__WXMSW__)
// Eliminate toolbar flicker on XP