folio report can only be linked to inverted folio report

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2694 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-01-01 19:21:10 +00:00
parent c0f1aa735b
commit c795bf72fc
9 changed files with 29 additions and 17 deletions

View File

@@ -45,7 +45,7 @@ Element * ElementFactory::createElement(const ElementsLocation &location, QGraph
if (element_definition->xml().hasAttribute("link_type")) {
QString link_type = element_definition->xml().attribute("link_type");
if (link_type == "folio_report") return (new ReportElement(location, qgi, s, state));
if (link_type == "next_report" || link_type == "previous_report") return (new ReportElement(location, link_type, qgi, s, state));
}
//default if nothing match for link_type
return (new SimpleElement(location, qgi, s, state));