mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-03-30 05:56:55 +00:00
Fix image size in Layer selector in Properties panel on hidpi.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13105
(cherry picked from commit 8b24496b79
)
This commit is contained in:
parent
062a03c3aa
commit
689441ebab
@ -605,8 +605,12 @@ wxValidator* PGPROPERTY_ANGLE::DoGetValidator() const
|
||||
|
||||
wxSize PGPROPERTY_COLORENUM::OnMeasureImage( int aItem ) const
|
||||
{
|
||||
// TODO(JE) calculate size from window metrics?
|
||||
return wxSize( 16, 12 );
|
||||
wxSize size( 16, -1 );
|
||||
|
||||
if( wxPropertyGrid* pg = GetGrid() )
|
||||
size = pg->FromDIP( size );
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user