From f4bd29a5db3f9571c7e92d5dfdc5f09fa3f964bc Mon Sep 17 00:00:00 2001 From: blacksun Date: Mon, 17 Nov 2014 10:10:00 +0000 Subject: [PATCH] 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 --- sources/projectview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/projectview.cpp b/sources/projectview.cpp index 5ca19fc53..c1944a376 100644 --- a/sources/projectview.cpp +++ b/sources/projectview.cpp @@ -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++; } }