changeset 5524:ebd1bf49f546

RT-32034 AreaChart doesnt always draw symbols reviewed by Jonathan.
author psomashe
date Thu, 24 Oct 2013 15:12:21 -0700
parents 5053f94940f4
children 86c40357ada4
files modules/controls/src/main/java/javafx/scene/chart/AreaChart.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/chart/AreaChart.java	Thu Oct 24 15:11:49 2013 -0700
+++ b/modules/controls/src/main/java/javafx/scene/chart/AreaChart.java	Thu Oct 24 15:12:21 2013 -0700
@@ -217,8 +217,11 @@
                 int last = series.getData().size() - 2;
                 item.setCurrentX(series.getData().get(last).getXValue());
                 item.setCurrentY(series.getData().get(last).getYValue());
-            } else if (symbol != null) {
+            }  
+            if (symbol != null) {
                 // fade in new symbol
+                symbol.setOpacity(0);
+                getPlotChildren().add(symbol);
                 FadeTransition ft = new FadeTransition(Duration.millis(500),symbol);
                 ft.setToValue(1);
                 ft.play();