[qet] qet/qet: [4857] Fix : in nomenclature .csv file, the variables of the value in column "label of folio" isn't assigned.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4857
Author:   blacksun
Date:     2017-01-19 13:43:40 +0100 (Thu, 19 Jan 2017)
Log Message:
-----------
Fix : in nomenclature .csv file, the variables of the value in column "label of folio" isn't assigned.

Modified Paths:
--------------
    trunk/sources/nomenclature.cpp

Modified: trunk/sources/nomenclature.cpp
===================================================================
--- trunk/sources/nomenclature.cpp	2017-01-18 18:35:11 UTC (rev 4856)
+++ trunk/sources/nomenclature.cpp	2017-01-19 12:43:40 UTC (rev 4857)
@@ -20,6 +20,7 @@
 #include "nomenclature.h"
 #include "elementprovider.h"
 #include "assignvariables.h"
+
 #define PR(x) qDebug() << #x " = " << x;
 
 /**
@@ -137,10 +138,11 @@
 
 	Diagram *diagram = elmt -> diagram();
 	DiagramContext elmt_info = elmt -> elementInformations();
+	autonum::sequentialNumbers empty_seq;
 
 	info += QString::number(diagram -> folioIndex()+1) + ";";
 	info += diagram -> title() + ";";
-	info += diagram -> border_and_titleblock.folio() + ";";
+	info += autonum::AssignVariables::formulaToLabel(diagram->border_and_titleblock.folio(), empty_seq, diagram) + ";";
 	info += elmt -> name() + ";";
 	info += elmt-> diagram()-> convertPosition(elmt -> scenePos()).toString() + ";";
 	info += autonum::AssignVariables::formulaToLabel(elmt_info["label"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt) + ";";


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/