diff --git a/src/output_latex.C b/src/output_latex.C index 6ef28173db..f37ad13ba5 100644 --- a/src/output_latex.C +++ b/src/output_latex.C @@ -500,7 +500,7 @@ TeXOnePar(Buffer const & buf, // two encodings in one file. // FIXME: Catch iconv conversion errors and display an error // dialog. - std::vector const faked = lyx::eightbit_to_ucs4(encoded.data(), + std::vector const faked = lyx::eightbit_to_ucs4(&(encoded[0]), encoded.size(), doc_language->encoding()->iconvName()); std::vector::const_iterator const end = faked.end(); std::vector::const_iterator it = faked.begin();