basctl/source/basicide/baside2b.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 7a71169604207979f3d4e8ce9f6c2d956534d82e Author: Gergo Mocsi <gmocs...@gmail.com> Date: Wed Aug 7 12:36:42 2013 +0200 GSOC work, unused code removal Removed the call of CodeCompleteListBox::GrabFocus. Change-Id: I6095f354eadd680d040319beb4d15d37850c3e9d diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 9378726..811cb3b 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -2648,7 +2648,6 @@ void CodeCompleteWindow::InitListBox() { pListBox->SetSizePixel( Size(150,150) ); //default, this will adopt the line length pListBox->Show(); - pListBox->GrabFocus(); pListBox->EnableQuickSelection( false ); } @@ -2686,7 +2685,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(); @@ -2706,6 +2704,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 @@ -2717,7 +2716,6 @@ void CodeCompleteWindow::ResizeListBox() aSize.setWidth( aSize.getWidth() + 1 ); aSize.setHeight( aSize.getHeight() + 1 ); SetSizePixel( aSize ); - pListBox->GrabFocus(); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits