summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basides1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/basides1.cxx')
-rw-r--r--basctl/source/basicide/basides1.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx
index e42ad914390a..25967f4f4ca4 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -708,13 +708,13 @@ void Shell::ExecuteGlobal( SfxRequest& rReq )
--nLine;
// scroll window and set selection
- long nVisHeight = pModWin->GetOutputSizePixel().Height();
- long nTextHeight = pTextEngine->GetTextHeight();
+ tools::Long nVisHeight = pModWin->GetOutputSizePixel().Height();
+ tools::Long nTextHeight = pTextEngine->GetTextHeight();
if ( nTextHeight > nVisHeight )
{
- long nMaxY = nTextHeight - nVisHeight;
- long nOldY = pTextView->GetStartDocPos().Y();
- long nNewY = nLine * pTextEngine->GetCharHeight() - nVisHeight / 2;
+ tools::Long nMaxY = nTextHeight - nVisHeight;
+ tools::Long nOldY = pTextView->GetStartDocPos().Y();
+ tools::Long nNewY = nLine * pTextEngine->GetCharHeight() - nVisHeight / 2;
nNewY = std::min( nNewY, nMaxY );
pTextView->Scroll( 0, -( nNewY - nOldY ) );
pTextView->ShowCursor( false );