changeset 3842:a6e13c635c15

reverting changes to TabPaneSkin
author psomashe
date Wed, 05 Jun 2013 00:06:29 -0700
parents 2d44c792b77d
children 1e300104bbc6
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TabPaneSkin.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TabPaneSkin.java	Wed Jun 05 00:01:55 2013 -0700
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TabPaneSkin.java	Wed Jun 05 00:06:29 2013 -0700
@@ -227,7 +227,7 @@
         selectedTab = getSkinnable().getSelectionModel().getSelectedItem();
         // If load-selected-tab property is set - then load only the contents of selected tab.
         if (!LOAD_ALL_TABS) {
-            if (selectedTab != null) addTabContent(selectedTab);
+            addTabContent(selectedTab);
         }
         isSelectingTab = false;
 
@@ -1520,7 +1520,7 @@
         }
 
         private void updateContent() {
-            if (getTab() != null && getTab().getContent() != null) {
+            if (getTab().getContent() != null) {
                 getChildren().add(getTab().getContent());
             }
         }