aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 659a37b90..0fbf555d1 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -581,10 +581,10 @@ LexState::~LexState() {
}
LexState *ScintillaBase::DocumentLexState() {
- if (!pdoc->pli) {
- pdoc->pli = new LexState(pdoc);
+ if (!pdoc->GetLexInterface()) {
+ pdoc->SetLexInterface(new LexState(pdoc));
}
- return static_cast<LexState *>(pdoc->pli);
+ return static_cast<LexState *>(pdoc->GetLexInterface());
}
void LexState::SetLexerModule(const LexerModule *lex) {