diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-09-17 18:34:17 +0400 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-19 11:41:29 +0000 |
commit | 2da3517dd289e00b98f7f8616a4faa9b00fb8403 (patch) | |
tree | bee272b23a081dadfd4966b290dd19097f98829d | |
parent | e612d5cfaf1ea95d5475978fe1393732fd46ff04 (diff) |
fdo#41833: fix visual cursor position after resizing
SetOutputArea updates a cursor position, SetVisArea doesn't => call SetOutputArea
after SetVisArea.
Change-Id: Ie8f079cb3d567f759c84587a8072b98fab43588b
(cherry picked from commit ddbcb6687722314b37cfda3170596ac7a4f69602)
Reviewed-on: https://gerrit.libreoffice.org/5978
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-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 17c0aead3cb4..ca7326bdd69d 100644 --- a/sw/source/ui/docvw/SidebarWin.cxx +++ b/sw/source/ui/docvw/SidebarWin.cxx @@ -596,11 +596,11 @@ void SwSidebarWin::DoResize() } mpOutliner->SetPaperSize( PixelToLogic( Size(aWidth,aHeight) ) ) ; - mpOutlinerView->SetOutputArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) ); if (!mpVScrollbar->IsVisible()) { // if we do not have a scrollbar anymore, we want to see the complete text mpOutlinerView->SetVisArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) ); } + mpOutlinerView->SetOutputArea( PixelToLogic( Rectangle(0,0,aWidth,aHeight) ) ); if (!Application::GetSettings().GetLayoutRTL()) { |