]> git.lyx.org Git - features.git/commitdiff
* fix out-of-vector addressing when typesetting UserGuide.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Dec 2007 14:52:52 +0000 (14:52 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Dec 2007 14:52:52 +0000 (14:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22147 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 6b6287d9f8b80d97d92ef0ad07208e788b0a5e31..81e295c84b62ba84908a02199b51cf8053add01f 100644 (file)
@@ -915,7 +915,7 @@ bool Paragraph::Private::latexSpecialT1(char_type const c, odocstream & os,
                os.put(c);
                // In T1 encoding, these characters exist
                // but we should avoid ligatures
-               if (i + 1 > int(text_.size()) || text_[i + 1] != c)
+               if (i + 1 >= int(text_.size()) || text_[i + 1] != c)
                        return true;
                os << "\\,{}";
                column += 3;