From 3953c293e435d8ff7656d395feb15d88a5ec6492 Mon Sep 17 00:00:00 2001 From: Brad Sowden Date: Mon, 18 Jun 2012 20:01:35 +1200 Subject: Remove redundant IF clause ClearCntnt() already sets m_bIsTip and m_bIsAutoText to true. Change-Id: Ic3ad53a7659dbfe4f28f7995976e659f5bd14afb --- sw/source/ui/docvw/edtwin.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx index 9cd1ba287e81..04e6e732b58b 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -5690,12 +5690,8 @@ void SwEditWin::ShowAutoTextCorrectQuickHelp( pList->HasLongName( rWord, &pQuickHlpData->m_aHelpStrings ); } - if( !pQuickHlpData->m_aHelpStrings.empty() ) - { - pQuickHlpData->m_bIsTip = true; - pQuickHlpData->m_bIsAutoText = true; - } - else if( pACorr->GetSwFlags().bAutoCompleteWords ) + if( pQuickHlpData->m_aHelpStrings.empty() && + pACorr->GetSwFlags().bAutoCompleteWords ) { pQuickHlpData->m_bIsAutoText = false; pQuickHlpData->m_bIsTip = bFromIME || -- cgit