From 377b88ece25a1c7117682d8887f3dc04cff5c71f Mon Sep 17 00:00:00 2001 From: Gergo Mocsi Date: Wed, 14 Aug 2013 12:56:39 +0200 Subject: GSOC work, renaming + options fix Options now work correctly: I've added the missing function. Rename: renamed some variables and methods to kep the consistence( Autocorrect keywords -> Autocorrect). Change-Id: I6b4914575f1a06eb3268c133b8b990364e3d24e4 --- basctl/source/basicide/baside2b.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basctl/source') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index c0c404645cf9..e408b299fcfe 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -510,7 +510,7 @@ void EditorWindow::KeyInput( const KeyEvent& rKEvt ) if( (rKEvt.GetKeyCode().GetCode() == KEY_SPACE || rKEvt.GetKeyCode().GetCode() == KEY_TAB || - rKEvt.GetKeyCode().GetCode() == KEY_RETURN ) && CodeCompleteOptions::IsAutoCorrectKeywordsOn() ) + rKEvt.GetKeyCode().GetCode() == KEY_RETURN ) && CodeCompleteOptions::IsAutoCorrectOn() ) { HandleAutoCorrect(); } @@ -755,7 +755,7 @@ void EditorWindow::HandleCodeCompletition() OUString sBaseName = aVect[0];//variable name OUString sVarType = aCodeCompleteCache.GetVarType( sBaseName ); - if( !sVarType.isEmpty() && CodeCompleteOptions::IsAutoCorrectKeywordsOn() ) + if( !sVarType.isEmpty() && CodeCompleteOptions::IsAutoCorrectOn() ) {//correct variable name TextPaM aStart(nLine, aLine.indexOf(sBaseName) ); TextPaM aEnd(nLine, aLine.indexOf(sBaseName) + sBaseName.getLength() ); -- cgit v1.2.3