[qet] [3497] Diagram folio sheet fix minor bug : create folio sheet isn' t added in order in project. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3497
Author: blacksun
Date: 2014-11-17 11:10:00 +0100 (Mon, 17 Nov 2014)
Log Message:
-----------
Diagram folio sheet fix minor bug : create folio sheet isn't added in order in project.
Modified Paths:
--------------
trunk/sources/projectview.cpp
Modified: trunk/sources/projectview.cpp
===================================================================
--- trunk/sources/projectview.cpp 2014-11-16 23:24:30 UTC (rev 3496)
+++ trunk/sources/projectview.cpp 2014-11-17 10:10:00 UTC (rev 3497)
@@ -315,13 +315,13 @@
*/
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++;
}
}