From f3aeb872c345f850c2bbc61a1e19896e69b7fef1 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Thu, 18 Sep 2014 16:42:20 +0000 Subject: [PATCH] Folio list read Default Properties Xml git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3312 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetproject.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index e58297c8a..c55bf53e6 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -1027,10 +1027,6 @@ void QETProject::readProjectXml() { // la racine du document XML est sensee etre un element "project" if (root_elmt.tagName() == "project") { - // if there is an attribute for folioSheetQuantity, then set it accordingly. - // If not, then the value remains at the initial value of zero. - if (root_elmt.hasAttribute("folioSheetQuantity")) - addNewDiagramFolioList(); // mode d'ouverture normal if (root_elmt.hasAttribute("version")) { @@ -1067,10 +1063,15 @@ void QETProject::readProjectXml() { // load the project-wide properties readProjectPropertiesXml(); - + // charge les proprietes par defaut pour les nouveaux schemas readDefaultPropertiesXml(); + // if there is an attribute for folioSheetQuantity, then set it accordingly. + // If not, then the value remains at the initial value of zero. + if (root_elmt.hasAttribute("folioSheetQuantity")) + addNewDiagramFolioList(); + // load the embedded titleblock templates readEmbeddedTemplatesXml(); @@ -1079,7 +1080,7 @@ void QETProject::readProjectXml() { // charge les schemas readDiagramsXml(); - + state_ = Ok; }