Skip to content

Commit d86ee72

Browse files
authored
Rust: fix setting psm (#1752)
1 parent da03c1e commit d86ee72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rust/src/common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ pub unsafe fn copy_from_rust(ccx_s_options: *mut ccx_s_options, options: Options
154154
(*ccx_s_options).ocrlang = string_to_c_char(ocrlang.to_ctype().as_str());
155155
}
156156
(*ccx_s_options).ocr_oem = options.ocr_oem as _;
157+
(*ccx_s_options).psm = options.psm as _;
157158
(*ccx_s_options).ocr_quantmode = options.ocr_quantmode as _;
158159
if let Some(mkvlang) = options.mkvlang {
159160
(*ccx_s_options).mkvlang = string_to_c_char(mkvlang.to_ctype().as_str());

0 commit comments

Comments
 (0)