Commit 66d191ea authored by dmMaze's avatar dmMaze
Browse files

fix using global font size #541

parent cad1ff4c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -963,7 +963,7 @@ class MainWindow(mainwindow_cls):
                    blk.line_spacing = gf.line_spacing
                    blk.letter_spacing = gf.letter_spacing
                    sw = blk.stroke_width
                    if sw > 0 and pcfg.module.enable_ocr and pcfg.module.enable_detect:
                    if sw > 0 and pcfg.module.enable_ocr and pcfg.module.enable_detect and not override_fnt_size:
                        blk.font_size = int(blk.font_size / (1 + sw))

            self.st_manager.auto_textlayout_flag = pcfg.let_autolayout_flag and \