mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Minor code improvent in creation of diagram folio list
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3313 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1698,15 +1698,13 @@ void QETDiagramEditor::addDiagramToProject() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief QETDiagramEditor::addDiagramFolioListToProject
|
||||
* Add new folio list to project
|
||||
*/
|
||||
void QETDiagramEditor::addDiagramFolioListToProject() {
|
||||
ProjectView *current_project = currentProject();
|
||||
if (current_project && current_project -> project() -> getFolioSheetsQuantity() == 0) {
|
||||
|
||||
// The number of folio sheets depend on the number of diagrams in the project.
|
||||
int diagram_qty = current_project -> diagrams().size();
|
||||
for (int i = 0; i <= diagram_qty/58; i++)
|
||||
if (ProjectView *current_project = currentProject())
|
||||
current_project -> addNewDiagramFolioList();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user