summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorGergo Mocsi <gmocsi91@gmail.com>2013-08-07 12:36:42 +0200
committerGergo Mocsi <gmocsi91@gmail.com>2013-09-02 18:16:57 +0200
commit7023bcf99d88f86399b515ad41c53d6dae611fd3 (patch)
tree2dde8ad551a9a0f732a2186310d23e7810c80c33 /basctl
parent06e4ed0e6f93e8a36f9f56cb9ce5ced1c4b75601 (diff)
GSOC work, unused code removal
Removed the call of CodeCompleteListBox::GrabFocus. Change-Id: I6095f354eadd680d040319beb4d15d37850c3e9d
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2b.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 301d2c046298..c06933107c95 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -2654,7 +2654,6 @@ void CodeCompleteWindow::InitListBox()
{
pListBox->SetSizePixel( Size(150,150) ); //default, this will adopt the line length
pListBox->Show();
- pListBox->GrabFocus();
pListBox->EnableQuickSelection( false );
}
@@ -2692,7 +2691,6 @@ void CodeCompleteWindow::ResizeListBox()
aLongestEntry = pListBox->GetEntry( i );
}
}
- //long nWidth = GetTextWidth(aLongestEntry);
sal_uInt16 nColumns = aLongestEntry.getLength();
sal_uInt16 nLines = std::min( (sal_uInt16) 6, pListBox->GetEntryCount() );
const Font& aFont = pListBox->GetUnzoomedControlPointFont();
@@ -2712,6 +2710,7 @@ void CodeCompleteWindow::ResizeListBox()
aPos.Y() = aPos.Y() - (aSize.getHeight() + aParFont.GetSize().getHeight()+5);
SetPosPixel(aPos);
}
+
long nXDiff = std::abs(aTopPoint.X() - GetPosPixel().X());
if( nXDiff < aSize.Width() )
{//clipped at the right side, move it a bit left
@@ -2723,7 +2722,6 @@ void CodeCompleteWindow::ResizeListBox()
aSize.setWidth( aSize.getWidth() + 1 );
aSize.setHeight( aSize.getHeight() + 1 );
SetSizePixel( aSize );
- pListBox->GrabFocus();
}
}