From 1cb97a8f85d068a7f797dd3575997bae6d2f3af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Thu, 10 Jun 2021 11:46:19 +0200 Subject: [PATCH] call adjust displayView when centering on last center --- src/board/UBBoardController.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 0ee35ae5..a836e3bc 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -984,7 +984,7 @@ void UBBoardController::previousScene() persistViewPositionOnCurrentScene(); persistCurrentScene(); setActiveDocumentScene(mActiveSceneIndex - 1); - mControlView->centerOn(mActiveScene->lastCenter()); + centerOn(mActiveScene->lastCenter()); QApplication::restoreOverrideCursor(); } @@ -1000,7 +1000,7 @@ void UBBoardController::nextScene() persistViewPositionOnCurrentScene(); persistCurrentScene(); setActiveDocumentScene(mActiveSceneIndex + 1); - mControlView->centerOn(mActiveScene->lastCenter()); + centerOn(mActiveScene->lastCenter()); QApplication::restoreOverrideCursor(); } @@ -1016,7 +1016,7 @@ void UBBoardController::firstScene() persistViewPositionOnCurrentScene(); persistCurrentScene(); setActiveDocumentScene(0); - mControlView->centerOn(mActiveScene->lastCenter()); + centerOn(mActiveScene->lastCenter()); QApplication::restoreOverrideCursor(); } @@ -1032,7 +1032,7 @@ void UBBoardController::lastScene() persistViewPositionOnCurrentScene(); persistCurrentScene(); setActiveDocumentScene(selectedDocument()->pageCount() - 1); - mControlView->centerOn(mActiveScene->lastCenter()); + centerOn(mActiveScene->lastCenter()); QApplication::restoreOverrideCursor(); }