diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-19 15:42:23 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-19 15:42:23 -0600 |
commit | 838d0cd4f397feef5b393942ec77185c00ccb811 (patch) | |
tree | 8883ac04a2b7a31be4ff5d56d964912bb9818703 /basctl | |
parent | b4ed680ebe8d89d010f4f1ccb5ffb8d6710475f4 (diff) |
coverity#1000814 coverity#1000815 : Unintended sign extension
Change-Id: Ia9e40dba5ef2beca2ebc6cc40672d6804d430af0
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index cc3a6e6a893b..2f8744e1dc4e 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -791,9 +791,9 @@ void ModulWindow::EditMacro( const OUString& rMacroName ) long nVisHeight = GetOutputSizePixel().Height(); if ( (long)pView->GetTextEngine()->GetTextHeight() > nVisHeight ) { - long nMaxY = pView->GetTextEngine()->GetTextHeight() - nVisHeight; + long nMaxY = (long)pView->GetTextEngine()->GetTextHeight() - nVisHeight; long nOldStartY = pView->GetStartDocPos().Y(); - long nNewStartY = nStart * pView->GetTextEngine()->GetCharHeight(); + long nNewStartY = (long)nStart * (long)pView->GetTextEngine()->GetCharHeight(); nNewStartY = std::min( nNewStartY, nMaxY ); pView->Scroll( 0, -(nNewStartY-nOldStartY) ); pView->ShowCursor( false, true ); |