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 /sw | |
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 'sw')
-rw-r--r-- | sw/source/ui/docvw/SidebarWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/docvw/SidebarWin.cxx b/sw/source/ui/docvw/SidebarWin.cxx index 503549e159a1..14553ad2e564 100644 --- a/sw/source/ui/docvw/SidebarWin.cxx +++ b/sw/source/ui/docvw/SidebarWin.cxx @@ -757,7 +757,7 @@ void SwSidebarWin::SetSizePixel( const Size& rNewSize ) void SwSidebarWin::SetScrollbar() { - mpVScrollbar->SetThumbPos( mpOutlinerView->GetVisArea().Top()+ mpOutlinerView->GetEditView().GetCursor()->GetOffsetY()); + mpVScrollbar->SetThumbPos(mpOutlinerView->GetVisArea().Top()); } void SwSidebarWin::ResizeIfNecessary(long aOldHeight, long aNewHeight) |