Commit 150dc953 authored by Didier Clerc's avatar Didier Clerc

Resolved a bug related to adding a page to current document

parent 30061212
...@@ -496,7 +496,9 @@ void UBBoardController::addScene(UBGraphicsScene* scene, bool replaceActiveIfEmp ...@@ -496,7 +496,9 @@ void UBBoardController::addScene(UBGraphicsScene* scene, bool replaceActiveIfEmp
if (replaceActiveIfEmpty && mActiveScene->isEmpty()) if (replaceActiveIfEmpty && mActiveScene->isEmpty())
{ {
UBPersistenceManager::persistenceManager()->insertDocumentSceneAt(selectedDocument(), clone, mActiveSceneIndex);
setActiveDocumentScene(mActiveSceneIndex); setActiveDocumentScene(mActiveSceneIndex);
deleteScene(mActiveSceneIndex + 1);
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment