From c3f175862a43c6ef9494609a2f62f5e0f28c015a Mon Sep 17 00:00:00 2001 From: iperov Date: Thu, 10 Jan 2019 05:12:02 +0400 Subject: [PATCH] fix manual extractor bug --- mainscripts/Extractor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mainscripts/Extractor.py b/mainscripts/Extractor.py index 3f09072..ea6a47f 100644 --- a/mainscripts/Extractor.py +++ b/mainscripts/Extractor.py @@ -211,7 +211,11 @@ class ExtractSubprocessor(SubprocessorBase): self.param_y = new_param_y self.param_rect_size = new_param_rect_size - self.rect = (self.param_x-self.param_rect_size, self.param_y-self.param_rect_size, self.param_x+self.param_rect_size, self.param_y+self.param_rect_size) + self.rect = ( int(self.param_x-self.param_rect_size), + int(self.param_y-self.param_rect_size), + int(self.param_x+self.param_rect_size), + int(self.param_y+self.param_rect_size) ) + return [filename, [self.rect]] else: