Don't call Realize() before setting the toolbar
parent
6ca879938d
commit
5da48d0f30
|
@ -416,7 +416,6 @@ void VideoDisplay::SetTool(std::unique_ptr<VisualToolBase> new_tool) {
|
||||||
toolBar->Show(false);
|
toolBar->Show(false);
|
||||||
toolBar->ClearTools();
|
toolBar->ClearTools();
|
||||||
toolBar->AddSeparator();
|
toolBar->AddSeparator();
|
||||||
toolBar->Realize();
|
|
||||||
tool->SetToolbar(toolBar);
|
tool->SetToolbar(toolBar);
|
||||||
|
|
||||||
// Update size as the new typesetting tool may have changed the subtoolbar size
|
// Update size as the new typesetting tool may have changed the subtoolbar size
|
||||||
|
|
Loading…
Reference in New Issue