diff options
author | Neil <nyamatongwe@gmail.com> | 2014-07-22 17:51:29 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-07-22 17:51:29 +1000 |
commit | d5997d9def9915606228f5a0254ad55d0183ba1a (patch) | |
tree | da5cf9c3244275d50cdde0076f849e9b3f9dbec7 | |
parent | a5d99fb0598bb1124825039cc541178c18c3b3fc (diff) | |
parent | 1b291b5c744ce17911d4f0af923b6f230192f6dd (diff) | |
download | scintilla-mirror-d5997d9def9915606228f5a0254ad55d0183ba1a.tar.gz |
Merged with GTK+ change.
-rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 88edfdec5..ac90dee2a 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1088,6 +1088,10 @@ void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, XYPOSITION } clusterStart = clusterEnd; } + while (i < lenPositions) { + // If something failed, fill in rest of the positions + positions[i++] = clusterStart; + } PLATFORM_ASSERT(i == lenPositions); } } |