From bd5ac521d9b3d1330d2e1906dc96012b40a016da Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 4 Dec 2015 17:11:01 +1100 Subject: Fix some problems with out-of-bounds access for protected text. --- src/Document.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Document.h') 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(cb.StyleAt(position)); } void GetStyleRange(unsigned char *buffer, int position, int lengthRetrieve) const { cb.GetStyleRange(buffer, position, lengthRetrieve); } -- cgit v1.2.3