summaryrefslogtreecommitdiff
path: root/sw/source/ui/docvw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-06 12:18:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-06 16:35:46 +0000
commit92204f06b53846cd60055df1757a0b20cbe5eb6e (patch)
tree674872cffda319c185740ced9f8abde362ca46ec /sw/source/ui/docvw
parent11abf53b9ddec37df333632eb06e3e28d31ffec2 (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/source/ui/docvw')
-rw-r--r--sw/source/ui/docvw/SidebarWin.cxx2
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)