summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index 39e79b0e31dc..dbdc329475f6 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -703,8 +703,7 @@ void ModulWindow::BasicAddWatch()
if ( !aWord.isEmpty() )
{
TextSelection aSel( aWordStart );
- sal_uInt16& rIndex = aSel.GetEnd().GetIndex();
- rIndex = rIndex + aWord.getLength();
+ aSel.GetEnd().GetIndex() += aWord.getLength();
GetEditView()->SetSelection( aSel );
bAdd = true;
}