mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Diagram folio sheet fix minor bug : create folio sheet isn't added in order in project.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3497 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -315,13 +315,13 @@ void ProjectView::addNewDiagram() {
|
||||
*/
|
||||
void ProjectView::addNewDiagramFolioList() {
|
||||
if (project_ -> isReadOnly()) return;
|
||||
int i = 0; //< Each new diagram is added to the end of the project.
|
||||
//< We use @i to move the folio list at the beginning of the project
|
||||
int i = 1; //< Each new diagram is added to the end of the project.
|
||||
//< We use @i to move the folio list at second position in the project
|
||||
foreach (Diagram *d, project_ -> addNewDiagramFolioList()) {
|
||||
DiagramView *new_diagram_view = new DiagramView(d);
|
||||
addDiagram(new_diagram_view);
|
||||
showDiagram(new_diagram_view);
|
||||
tabs_->moveTab(diagrams().size()-1, + 1);
|
||||
tabs_->moveTab(diagrams().size()-1, i);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user