Fixed a wxWidgets assertion. Newer wxWidgets (3.1) display a message saying that horizontal alignment flags are ignored with wxEXPAND.

This commit is contained in:
Maciej Suminski 2016-05-02 15:56:12 +02:00
parent f968556f9a
commit da312db7a4
4 changed files with 5 additions and 5 deletions

View File

@ -235,7 +235,7 @@ PANEL_PREV_3D::PANEL_PREV_3D( wxWindow* aParent, S3D_CACHE* aCacheManager ) :
preview = new wxPanel( this, -1 );
preview->SetMinSize( wxSize( 320, 200 ) );
preview->SetBackgroundColour( wxColor( 0, 0, 0 ));
vboxPrev->Add( preview, 1, wxEXPAND | wxALIGN_CENTER | wxLEFT | wxRIGHT, 5 );
vboxPrev->Add( preview, 1, wxEXPAND | wxLEFT | wxRIGHT, 5 );
// buttons:
wxButton* vFront = new wxButton( this, ID_3D_FRONT, wxT( "F" ) );
wxButton* vBack = new wxButton( this, ID_3D_BACK, wxT( "B" ) );

View File

@ -143,7 +143,7 @@ void EDA_DRAW_PANEL_GAL::onPaint( wxPaintEvent& WXUNUSED( aEvent ) )
return;
m_drawing = true;
KIGFX::PCB_RENDER_SETTINGS *settings = static_cast<KIGFX::PCB_RENDER_SETTINGS*>( m_painter->GetSettings() );
KIGFX::PCB_RENDER_SETTINGS* settings = static_cast<KIGFX::PCB_RENDER_SETTINGS*>( m_painter->GetSettings() );
m_viewControls->UpdateScrollbars();
m_view->UpdateItems();

View File

@ -51,7 +51,7 @@ GAL::GAL() :
SetLayerDepth( 0.0 );
SetFlip( false, false );
SetLineWidth( 1.0 );
ComputeWorldScale();
computeWorldScale();
// Set grid defaults
SetGridVisibility( true );
@ -95,7 +95,7 @@ VECTOR2D GAL::GetTextLineSize( const UTF8& aText ) const
void GAL::ComputeWorldScreenMatrix()
{
ComputeWorldScale();
computeWorldScale();
worldScreenMatrix.SetIdentity();

View File

@ -909,7 +909,7 @@ protected:
STROKE_FONT strokeFont;
/// Compute the scaling factor for the world->screen matrix
inline void ComputeWorldScale()
inline void computeWorldScale()
{
worldScale = screenDPI * worldUnitLength * zoomFactor;
}