fix assert in wx2.6 compatibility code, on pcbnew startup, when running with debug enabled
This commit is contained in:
parent
be87b19bb0
commit
45e0c6eca7
|
@ -166,10 +166,12 @@ wxMemoryDC iconDC;
|
||||||
m_HToolBar->SetToolNormalBitmap(ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR, *LayerPairBitmap);
|
m_HToolBar->SetToolNormalBitmap(ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR, *LayerPairBitmap);
|
||||||
#else
|
#else
|
||||||
int pos = m_HToolBar->GetToolPos(ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR);
|
int pos = m_HToolBar->GetToolPos(ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR);
|
||||||
m_HToolBar->DeleteTool(ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR);
|
if (pos != wxNOT_FOUND) {
|
||||||
m_HToolBar->InsertTool(pos, ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR, *LayerPairBitmap,
|
m_HToolBar->DeleteTool(ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR);
|
||||||
wxNullBitmap, false, NULL, SEL_LAYER_HELP);
|
m_HToolBar->InsertTool(pos, ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR, *LayerPairBitmap,
|
||||||
m_HToolBar->Realize();
|
wxNullBitmap, false, NULL, SEL_LAYER_HELP);
|
||||||
|
m_HToolBar->Realize();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue