From 009d99407bdb2d6427300b4d28cbeb38732ed7d7 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 5 Dec 2011 01:45:08 +0000 Subject: [PATCH] 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. --- aegisub/src/video_display.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/src/video_display.cpp b/aegisub/src/video_display.cpp index 63681b411..45c7c33bb 100644 --- a/aegisub/src/video_display.cpp +++ b/aegisub/src/video_display.cpp @@ -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(); }