diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-06 12:18:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-06 16:35:46 +0000 |
commit | 92204f06b53846cd60055df1757a0b20cbe5eb6e (patch) | |
tree | 674872cffda319c185740ced9f8abde362ca46ec /sd | |
parent | 11abf53b9ddec37df333632eb06e3e28d31ffec2 (diff) |
coverity#708643 nOffsetY missing from copy ctor
its normally always 0, so shrink the code based
on that
Change-Id: Ic9a4615f0ecb0713a00e4acd73485f99fd50a859
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/annotations/annotationwindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index 0ffcf5d591c7..2e1c6fd5d246 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -450,7 +450,7 @@ void AnnotationWindow::SetSizePixel( const Size& rNewSize ) void AnnotationWindow::SetScrollbar() { - mpVScrollbar->SetThumbPos( mpOutlinerView->GetVisArea().Top()+ mpOutlinerView->GetEditView().GetCursor()->GetOffsetY()); + mpVScrollbar->SetThumbPos(mpOutlinerView->GetVisArea().Top()); } void AnnotationWindow::ResizeIfNecessary(long aOldHeight, long aNewHeight) |