Fix infinite loop when switching between the \pos and \move icons in the visual subtoolbar

Originally committed to SVN as r6028.
This commit is contained in:
Thomas Goyne 2011-12-22 21:13:57 +00:00
parent c27ee9fcb8
commit 6ee6e10117

View file

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