From 6ee6e10117f64371c865a14fa7719a7ef8b35360 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Dec 2011 21:13:57 +0000 Subject: [PATCH] Fix infinite loop when switching between the \pos and \move icons in the visual subtoolbar Originally committed to SVN as r6028. --- aegisub/src/visual_tool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/visual_tool.cpp b/aegisub/src/visual_tool.cpp index e41ab2299..f09045977 100644 --- a/aegisub/src/visual_tool.cpp +++ b/aegisub/src/visual_tool.cpp @@ -155,6 +155,8 @@ AssDialogue* VisualToolBase::GetActiveDialogueLine() { } void VisualToolBase::SetDisplayArea(int x, int y, int w, int h) { + if (x == video_pos.X() && y == video_pos.Y() && w == video_res.X() && h == video_res.Y()) return; + video_pos = Vector2D(x, y); video_res = Vector2D(w, h);