mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* src/Encoding.cpp (latexChar):
- assure the encodings are proper initialized. supposedely fixes bugs 3561 and 3562 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18221 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8b238ec805
commit
7f4becba15
@ -193,8 +193,10 @@ void Encoding::init() const
|
|||||||
|
|
||||||
docstring const Encoding::latexChar(char_type c) const
|
docstring const Encoding::latexChar(char_type c) const
|
||||||
{
|
{
|
||||||
// validate() should have been called before
|
// assure the used encoding is properly initialized
|
||||||
//BOOST_ASSERT(complete_);
|
if (!complete_)
|
||||||
|
init();
|
||||||
|
BOOST_ASSERT(complete_);
|
||||||
|
|
||||||
if (c < start_encodable_)
|
if (c < start_encodable_)
|
||||||
return docstring(1, c);
|
return docstring(1, c);
|
||||||
|
Loading…
Reference in New Issue
Block a user