diff options
author | Neil <nyamatongwe@gmail.com> | 2015-12-04 17:11:01 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-12-04 17:11:01 +1100 |
commit | bd5ac521d9b3d1330d2e1906dc96012b40a016da (patch) | |
tree | df28e239090a9805546d3cbd1c76f80f4f144393 /src/Document.h | |
parent | f6748d3bd3f7f608efcdc21d218335841ef60de9 (diff) | |
download | scintilla-mirror-bd5ac521d9b3d1330d2e1906dc96012b40a016da.tar.gz |
Fix some problems with out-of-bounds access for protected text.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index 21713d3a2..00f80914c 100644 --- a/src/Document.h +++ b/src/Document.h @@ -340,6 +340,7 @@ public: cb.GetCharRange(buffer, position, lengthRetrieve); } char SCI_METHOD StyleAt(Sci_Position position) const { return cb.StyleAt(position); } + int StyleIndexAt(Sci_Position position) const { return static_cast<unsigned char>(cb.StyleAt(position)); } void GetStyleRange(unsigned char *buffer, int position, int lengthRetrieve) const { cb.GetStyleRange(buffer, position, lengthRetrieve); } |