From ea557a3e667b915bcc071ffb20484e7e4e7583ce Mon Sep 17 00:00:00 2001 From: Domingo Alvarez Duarte Date: Wed, 6 Sep 2017 11:18:42 +0200 Subject: [PATCH] Fix to preserve_interword_spaces work again --- ccstruct/pageres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccstruct/pageres.cpp b/ccstruct/pageres.cpp index 894102cd05..f239b63009 100644 --- a/ccstruct/pageres.cpp +++ b/ccstruct/pageres.cpp @@ -1331,7 +1331,7 @@ void PAGE_RES_IT::ReplaceCurrentWord( if (input_word->word->flag(W_BOL)) { (*words)[0]->word->set_flag(W_BOL, true); } else { - (*words)[0]->word->set_blanks(1); + (*words)[0]->word->set_blanks(input_word->word->space()); } words->back()->word->set_flag(W_EOL, input_word->word->flag(W_EOL));