diff options
author | tagezi <lera.goncharuk@gmail.com> | 2017-05-26 08:33:18 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-05-26 09:47:59 +0200 |
commit | d0c0ebbcabb67b8dfd130cf4e9e666bba229f846 (patch) | |
tree | 166bb1bf2ae88716b7dfba0948ee03da6de53f52 /basctl | |
parent | 271094ad8f9e334d17176744b90b35e80528bcb2 (diff) |
deleted variable bAdd because it does not make sense
Change-Id: Ib65c38c7e99ff4667c021240a1412c8f57f53cbe
Reviewed-on: https://gerrit.libreoffice.org/38050
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index f0070aa5fe01..c85863afdd2f 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -669,7 +669,6 @@ BasicDebugFlags ModulWindow::BasicBreakHdl( StarBASIC* pBasic ) void ModulWindow::BasicAddWatch() { AssertValidEditEngine(); - bool bAdd = true; if ( !GetEditView()->HasSelection() ) { TextPaM aWordStart; @@ -679,15 +678,12 @@ void ModulWindow::BasicAddWatch() TextSelection aSel( aWordStart ); aSel.GetEnd().GetIndex() += aWord.getLength(); GetEditView()->SetSelection( aSel ); - bAdd = true; } } - if ( bAdd ) - { - TextSelection aSel = GetEditView()->GetSelection(); - if ( aSel.GetStart().GetPara() == aSel.GetEnd().GetPara() ) // single line selection - m_rLayout.BasicAddWatch(GetEditView()->GetSelected()); - } + + TextSelection aSel = GetEditView()->GetSelection(); + if ( aSel.GetStart().GetPara() == aSel.GetEnd().GetPara() ) // single line selection + m_rLayout.BasicAddWatch(GetEditView()->GetSelected()); } |