From 0d61affda7e2c417a48cc345d82d15158a2121bc Mon Sep 17 00:00:00 2001
From: Good Guy <good1.2guy@gmail.com>
Date: Sat, 22 Dec 2018 14:39:42 -0700
Subject: [PATCH] fix for filebox apply btn on resize

---
 cinelerra-5.1/cinelerra/loadfile.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cinelerra-5.1/cinelerra/loadfile.C b/cinelerra-5.1/cinelerra/loadfile.C
index 434edfe6..2ec06fb4 100644
--- a/cinelerra-5.1/cinelerra/loadfile.C
+++ b/cinelerra-5.1/cinelerra/loadfile.C
@@ -202,8 +202,8 @@ int LoadFileWindow::resize_event(int w, int h)
 		LoadMode::calculate_h(this, mwindow->theme);
 	loadmode->reposition_window(x, y);
 
-	x = (get_w() - BC_GenericButton::calculate_w(this, _("Apply")))/2;
-	y = get_h() - BC_GenericButton::calculate_h() - 15;
+	x = (w - BC_GenericButton::calculate_w(this, _("Apply")))/2;
+	y = h - BC_GenericButton::calculate_h() - 15;
 	load_file_apply->reposition_window(x, y);
 
 	return BC_FileBox::resize_event(w, h);
-- 
2.26.2