aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-06-25 01:46:25 +0000
committernyamatongwe <devnull@localhost>2007-06-25 01:46:25 +0000
commitfc23a10d8292042571f6a292d6fc4bff73f1d0ab (patch)
tree059f2d45f3344ce332ed27a5b75138633de22bc8 /src/Editor.cxx
parent48974cb7802717896ed7560bf0520cf942b8c245 (diff)
downloadscintilla-mirror-fc23a10d8292042571f6a292d6fc4bff73f1d0ab.tar.gz
Allow use of all 8 bits for lexical styles and LexHTML set to use 8 buts.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index c4e86fb09..51c79bc15 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3035,7 +3035,7 @@ long Editor::FormatRange(bool draw, RangeToFormat *pfr) {
vsPrint.showCaretLineBackground = false;
// Set colours for printing according to users settings
- for (int sty = 0;sty <= STYLE_MAX;sty++) {
+ for (size_t sty = 0;sty < vsPrint.stylesSize;sty++) {
if (printColourMode == SC_PRINT_INVERTLIGHT) {
vsPrint.styles[sty].fore.desired = InvertedLight(vsPrint.styles[sty].fore.desired);
vsPrint.styles[sty].back.desired = InvertedLight(vsPrint.styles[sty].back.desired);
@@ -6489,7 +6489,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_TEXTWIDTH:
- PLATFORM_ASSERT(wParam <= vs.stylesSize);
+ PLATFORM_ASSERT(wParam < vs.stylesSize);
PLATFORM_ASSERT(lParam);
return TextWidth(wParam, CharPtrFromSPtr(lParam));