[Libreoffice-commits] core.git: dbaccess/source
Caolán McNamara
caolanm at redhat.com
Tue Apr 21 06:22:54 PDT 2015
dbaccess/source/ui/querydesign/JoinTableView.cxx | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
New commits:
commit 2bf87e1c9d468c433248e7eb72a1ab5432145853
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Apr 21 14:15:06 2015 +0100
Visbile->Visible
Change-Id: I7f26d81c83ff3eee7dfbdc3b9c76592bb152e130
diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx
index b5e47b4..eb76c32 100644
--- a/dbaccess/source/ui/querydesign/JoinTableView.cxx
+++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx
@@ -423,7 +423,7 @@ namespace
// data about ourself
Size aSize = _pView->getRealOutputSize(); //GetOutputSizePixel();
- bool bVisbile = true;
+ bool bVisible = true;
bool bFitsHor = (aUpperLeft.X() >= 0) && (aLowerRight.X() <= aSize.Width());
bool bFitsVert= (aUpperLeft.Y() >= 0) && (aLowerRight.Y() <= aSize.Height());
if (!bFitsHor || !bFitsVert)
@@ -450,24 +450,24 @@ namespace
}
if ( _nScrollX ) // aSize.Width() > _rSize.Width() &&
- bVisbile = isScrollAllowed(_pView,_nScrollX, true);
+ bVisible = isScrollAllowed(_pView,_nScrollX, true);
if ( _nScrollY ) // aSize.Height() > _rSize.Height() &&
- bVisbile = bVisbile && isScrollAllowed(_pView,_nScrollY, false);
+ bVisible = bVisible && isScrollAllowed(_pView,_nScrollY, false);
- if ( bVisbile )
+ if ( bVisible )
{
sal_Int32 nHRangeMax = _pView->GetHScrollBar().GetRangeMax();
sal_Int32 nVRangeMax = _pView->GetVScrollBar().GetRangeMax();
if ( aSize.Width() + _pView->GetHScrollBar().GetThumbPos() + _nScrollX > nHRangeMax )
- bVisbile = false;
- if ( bVisbile && aSize.Height() + _pView->GetVScrollBar().GetThumbPos() + _nScrollY > nVRangeMax )
- bVisbile = false;
+ bVisible = false;
+ if ( bVisible && aSize.Height() + _pView->GetVScrollBar().GetThumbPos() + _nScrollY > nVRangeMax )
+ bVisible = false;
}
}
- return bVisbile;
+ return bVisible;
}
} // end of ano namespace
@@ -491,11 +491,11 @@ void OJoinTableView::EnsureVisible(const Point& _rPoint,const Size& _rSize)
if ( getMovementImpl(this,_rPoint,_rSize,nScrollX,nScrollY) )
{
- bool bVisbile = true;
+ bool bVisible = true;
if (nScrollX)
- bVisbile = ScrollPane(nScrollX, true, true);
+ bVisible = ScrollPane(nScrollX, true, true);
- if (nScrollY && bVisbile)
+ if (nScrollY && bVisible)
ScrollPane(nScrollY, false, true);
}
}
More information about the Libreoffice-commits
mailing list