mirror of https://github.com/odrling/Aegisub
Force a relayout of the video display after switching visual tools. Fixes a bug where the subtoolbar would sometimes appear in the wrong place.
Originally committed to SVN as r5959.
This commit is contained in:
parent
48d412468e
commit
009d99407b
|
@ -404,6 +404,7 @@ void VideoDisplay::SetTool(VisualToolBase *new_tool) {
|
|||
tool->SetDisplayArea(viewport_left, viewport_top, viewport_width, viewport_height);
|
||||
|
||||
// Update size as the new typesetting tool may have changed the subtoolbar size
|
||||
GetGrandParent()->Layout();
|
||||
UpdateSize();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue