summaryrefslogtreecommitdiff
path: root/reportbuilder
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2009-10-12 12:32:19 +0000
committerOcke Janssen <oj@openoffice.org>2009-10-12 12:32:19 +0000
commit081fab2c4e7de3c04300e5e19e85518c04150231 (patch)
treea3aec6e2f1597ecd6ea64dfdcdca7320e437746c /reportbuilder
parent4308b858072163d2ae8f63843a26b9626c47abf9 (diff)
#i105724# check tDisplayCondition
Diffstat (limited to 'reportbuilder')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/layoutprocessor/TableCellLayoutController.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/layoutprocessor/TableCellLayoutController.java b/reportbuilder/java/com/sun/star/report/pentaho/layoutprocessor/TableCellLayoutController.java
index 44117380e176..e9025330a60f 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/layoutprocessor/TableCellLayoutController.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/layoutprocessor/TableCellLayoutController.java
@@ -98,6 +98,15 @@ public class TableCellLayoutController extends SectionLayoutController
{
return null;
}
+ final Expression dc = element.getDisplayCondition();
+ if (dc != null)
+ {
+ final Object o = LayoutControllerUtil.evaluateExpression(getFlowController(), element, dc);
+ if (Boolean.FALSE.equals(o))
+ {
+ return null;
+ }
+ }
return FormatValueUtility.computeDataFlag(element, getFlowController());
}