summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/dlged/dlgedfunc.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/basctl/source/dlged/dlgedfunc.cxx b/basctl/source/dlged/dlgedfunc.cxx
index a53d68a1f46a..e13977183604 100644
--- a/basctl/source/dlged/dlgedfunc.cxx
+++ b/basctl/source/dlged/dlgedfunc.cxx
@@ -61,14 +61,12 @@ void DlgEdFunc::ForceScroll( const Point& rPos )
{
if( rPos.X() < aOutRect.Left() )
nDeltaX = -nDeltaX;
- else
- if( rPos.X() <= aOutRect.Right() )
+ else if( rPos.X() <= aOutRect.Right() )
nDeltaX = 0;
if( rPos.Y() < aOutRect.Top() )
nDeltaY = -nDeltaY;
- else
- if( rPos.Y() <= aOutRect.Bottom() )
+ else if( rPos.Y() <= aOutRect.Bottom() )
nDeltaY = 0;
if( nDeltaX )