diff options
author | Enrico Tröger <unknown> | 2023-09-13 08:06:51 +1000 |
---|---|---|
committer | Enrico Tröger <unknown> | 2023-09-13 08:06:51 +1000 |
commit | c10733bd9897aef1e775399a70ae5e2684754ee2 (patch) | |
tree | 0caf399357353fad3f339edbbf66c3f0fba0be45 | |
parent | 262c93dd25c448bc605cb65378329533c9cbe0ef (diff) | |
download | scintilla-mirror-c10733bd9897aef1e775399a70ae5e2684754ee2.tar.gz |
Fix assertion failure on some systems when an INDIC_SQUIGGLEPIXMAP drawn for a
zero-width character.
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rwxr-xr-x | gtk/PlatGTK.cxx | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 069a2cf5c..975dc8d04 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -595,6 +595,10 @@ <a href="https://sourceforge.net/p/scintilla/bugs/2401/">Bug #2401</a>. </li> <li> + For GTK, fix assertion failure on some systems when an INDIC_SQUIGGLEPIXMAP drawn + for a zero-width character. + </li> + <li> For Qt, allow parent window to handle context menu events by setting as ignored. <a href="https://sourceforge.net/p/scintilla/bugs/2395/">Bug #2395</a>. </li> diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index b9e63c8ab..692735f45 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -607,6 +607,8 @@ void SurfaceImpl::GradientRectangle(PRectangle rc, const std::vector<ColourStop> void SurfaceImpl::DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) { PLATFORM_ASSERT(context); + if (width == 0) + return; if (rc.Width() > width) rc.left += (rc.Width() - width) / 2; rc.right = rc.left + width; |