changeset 4014:4db41f2715d3

RT-29262: check FX app thread when adding a node to dirty list.
author Pavel Safrata
date Wed, 19 Jun 2013 07:46:29 +0100
parents 64d0a96e0401
children 45f064ac1724
files javafx-ui-common/src/javafx/scene/Scene.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/javafx/scene/Scene.java	Tue Jun 18 16:29:40 2013 -0700
+++ b/javafx-ui-common/src/javafx/scene/Scene.java	Wed Jun 19 07:46:29 2013 +0100
@@ -502,6 +502,8 @@
      * markDirty method in Node or when the Node's scene changes.
      */
     void addToDirtyList(Node n) {
+        Toolkit.getToolkit().checkFxUserThread();
+
         if (dirtyNodes == null || dirtyNodesSize == 0) {
             if (impl_peer != null) {
                 Toolkit.getToolkit().requestNextPulse();