Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
723ef7b2
Commit
723ef7b2
authored
7 years ago
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a bug where adding an existing page to the curent document resulted in a crash
parent
8a2ce951
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
UBBoardController.cpp
src/board/UBBoardController.cpp
+2
-0
No files found.
src/board/UBBoardController.cpp
View file @
723ef7b2
...
...
@@ -550,6 +550,7 @@ void UBBoardController::addScene(UBGraphicsScene* scene, bool replaceActiveIfEmp
if
(
replaceActiveIfEmpty
&&
mActiveScene
->
isEmpty
())
{
UBPersistenceManager
::
persistenceManager
()
->
insertDocumentSceneAt
(
selectedDocument
(),
clone
,
mActiveSceneIndex
);
emit
addThumbnailRequired
(
this
,
mActiveSceneIndex
);
setActiveDocumentScene
(
mActiveSceneIndex
);
deleteScene
(
mActiveSceneIndex
+
1
);
}
...
...
@@ -557,6 +558,7 @@ void UBBoardController::addScene(UBGraphicsScene* scene, bool replaceActiveIfEmp
{
persistCurrentScene
(
false
,
true
);
UBPersistenceManager
::
persistenceManager
()
->
insertDocumentSceneAt
(
selectedDocument
(),
clone
,
mActiveSceneIndex
+
1
);
emit
addThumbnailRequired
(
this
,
mActiveSceneIndex
+
1
);
setActiveDocumentScene
(
mActiveSceneIndex
+
1
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment