call adjust displayView when centering on last center

preferencesAboutTextFull
Clément Fauconnier 4 years ago
parent 19e6331f5d
commit 1cb97a8f85
  1. 8
      src/board/UBBoardController.cpp

@ -984,7 +984,7 @@ void UBBoardController::previousScene()
persistViewPositionOnCurrentScene(); persistViewPositionOnCurrentScene();
persistCurrentScene(); persistCurrentScene();
setActiveDocumentScene(mActiveSceneIndex - 1); setActiveDocumentScene(mActiveSceneIndex - 1);
mControlView->centerOn(mActiveScene->lastCenter()); centerOn(mActiveScene->lastCenter());
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
} }
@ -1000,7 +1000,7 @@ void UBBoardController::nextScene()
persistViewPositionOnCurrentScene(); persistViewPositionOnCurrentScene();
persistCurrentScene(); persistCurrentScene();
setActiveDocumentScene(mActiveSceneIndex + 1); setActiveDocumentScene(mActiveSceneIndex + 1);
mControlView->centerOn(mActiveScene->lastCenter()); centerOn(mActiveScene->lastCenter());
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
} }
@ -1016,7 +1016,7 @@ void UBBoardController::firstScene()
persistViewPositionOnCurrentScene(); persistViewPositionOnCurrentScene();
persistCurrentScene(); persistCurrentScene();
setActiveDocumentScene(0); setActiveDocumentScene(0);
mControlView->centerOn(mActiveScene->lastCenter()); centerOn(mActiveScene->lastCenter());
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
} }
@ -1032,7 +1032,7 @@ void UBBoardController::lastScene()
persistViewPositionOnCurrentScene(); persistViewPositionOnCurrentScene();
persistCurrentScene(); persistCurrentScene();
setActiveDocumentScene(selectedDocument()->pageCount() - 1); setActiveDocumentScene(selectedDocument()->pageCount() - 1);
mControlView->centerOn(mActiveScene->lastCenter()); centerOn(mActiveScene->lastCenter());
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
} }

Loading…
Cancel
Save