Eeschema: Fix a crash at start in Debug mode
This commit is contained in:
parent
f9faa6ea16
commit
58916a200e
|
@ -222,8 +222,12 @@ void EDA_DRAW_PANEL_GAL::onSize( wxSizeEvent& aEvent )
|
||||||
{
|
{
|
||||||
wxSize clientSize = GetClientSize();
|
wxSize clientSize = GetClientSize();
|
||||||
m_gal->ResizeScreen( clientSize.x, clientSize.y );
|
m_gal->ResizeScreen( clientSize.x, clientSize.y );
|
||||||
m_view->MarkTargetDirty( KIGFX::TARGET_CACHED );
|
|
||||||
m_view->MarkTargetDirty( KIGFX::TARGET_NONCACHED );
|
if( m_view )
|
||||||
|
{
|
||||||
|
m_view->MarkTargetDirty( KIGFX::TARGET_CACHED );
|
||||||
|
m_view->MarkTargetDirty( KIGFX::TARGET_NONCACHED );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -488,4 +492,3 @@ void EDA_DRAW_PANEL_GAL::SetDefaultCursor()
|
||||||
{
|
{
|
||||||
SetCurrentCursor( m_defaultCursor );
|
SetCurrentCursor( m_defaultCursor );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue