Ensure starting glyph is valid at layout (fixes :set lines=9999 crash)

git-svn-id: http://macvim.googlecode.com/svn/trunk@321 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
Bjorn Winckler
2007-10-16 16:54:55 +00:00
parent b63afdbf99
commit d9001e241d
+2 -1
View File
@@ -56,7 +56,8 @@
// is centered within a line.
float baseline = [font descender] - floor(.5*[ts linespace]);
if (!(ts && tv && tc && font && text && textLen))
if (!(lm && ts && tv && tc && font && text && textLen
&& [lm isValidGlyphIndex:startGlyphIdx]))
return;
float baselineOffset = [[NSUserDefaults standardUserDefaults]