summaryrefslogtreecommitdiff
path: root/community/aegisub/crash-on-deatach.patch
blob: 1a1a3d007183c39683e06654a20249a8e4ed2e64 (plain)
1
2
3
4
5
6
7
8
9
10
--- a/src/video_display.cpp
+++ b/src/video_display.cpp
@@ -309,6 +309,7 @@
 }
 
 void VideoDisplay::UpdateSize() {
+	if (zoomValue<=0) zoomValue = 1;
 	if (!con->videoController->IsLoaded() || !IsShownOnScreen()) return;
 
 	videoSize.Set(con->videoController->GetWidth(), con->videoController->GetHeight());