diff options
| -rw-r--r-- | src/ScintillaBase.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 055d61f91..9086f2976 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -622,7 +622,7 @@ LexState *ScintillaBase::DocumentLexState() {  	if (!pdoc->GetLexInterface()) {  		pdoc->SetLexInterface(new LexState(pdoc));  	} -	return static_cast<LexState *>(pdoc->GetLexInterface()); +	return dynamic_cast<LexState *>(pdoc->GetLexInterface());  }  void LexState::SetLexerModule(const LexerModule *lex) { | 
