Commit a4fad73c authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

cpp: Fix page::text_list encoding issue

Text from TextoutputDev always comes in UTF-8

Well it comes in GlobalParams::textEncoding but that is UTF-8 and we
don't let people change it
parent 2f442c6a
Pipeline #11383 passed with stage
in 16 minutes and 17 seconds
......@@ -365,7 +365,7 @@ std::vector<text_box> page::text_list() const
TextWord *word = word_list->get(i);
std::unique_ptr<GooString> gooWord{word->getText()};
ustring ustr = detail::unicode_GooString_to_ustring(gooWord.get());
ustring ustr = ustring::from_utf8(gooWord->c_str());
double xMin, yMin, xMax, yMax;
word->getBBox(&xMin, &yMin, &xMax, &yMax);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment