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:
Thomas Goyne 2011-12-05 01:45:08 +00:00
parent 48d412468e
commit 009d99407b

View file

@ -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();
}