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 | 9c9ff508d34fa2986af65826aad53e9fa6511b0d (patch) | |
tree | d2438304b8c31e66cc6bab1ac5f28dcd6d89982e | |
parent | 6e4b17a2b6a5b67fbce072130363020ee80c301e (diff) | |
parent | 16c449b947b1b43b5249ab1d95301f22258d7175 (diff) | |
download | scintilla-mirror-9c9ff508d34fa2986af65826aad53e9fa6511b0d.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); } } |