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:
parent
f968556f9a
commit
da312db7a4
|
@ -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" ) );
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue