fixed set current background on a new page

preferencesAboutTextFull
Clément Fauconnier 6 years ago
parent ac51989b45
commit 6df843dc58
  1. 5
      src/core/UBPersistenceManager.cpp

@ -747,6 +747,11 @@ UBGraphicsScene* UBPersistenceManager::createDocumentSceneAt(UBDocumentProxy* pr
UBGraphicsScene *newScene = mSceneCache.createScene(proxy, index, useUndoRedoStack); UBGraphicsScene *newScene = mSceneCache.createScene(proxy, index, useUndoRedoStack);
newScene->setBackground(UBSettings::settings()->isDarkBackground(),
UBSettings::settings()->UBSettings::pageBackground());
newScene->setBackgroundGridSize(UBSettings::settings()->crossSize);
persistDocumentScene(proxy, newScene, index); persistDocumentScene(proxy, newScene, index);
proxy->incPageCount(); proxy->incPageCount();

Loading…
Cancel
Save