]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
BufferParams.cpp: fix bug 3568:
[lyx.git] / src / Encoding.cpp
index 0e92862f4c6b3baae375588af9bb6eabf194c70e..59536062686ddafe77a5b169ba6f43c1870922b8 100644 (file)
@@ -193,8 +193,10 @@ void Encoding::init() const
 
 docstring const Encoding::latexChar(char_type c) const
 {
-       // validate() should have been called before
-       //BOOST_ASSERT(complete_);
+       // assure the used encoding is properly initialized
+       if (!complete_)
+               init();
+       BOOST_ASSERT(complete_);
 
        if (c < start_encodable_)
                return docstring(1, c);