Fix tabbed area header select.
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 11 Feb 2021 10:38:11 +0000 (11:38 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 11 Feb 2021 10:38:11 +0000 (11:38 +0100)
core/org.argeo.suite.ui/src/org/argeo/suite/ui/widgets/TabbedArea.java

index cd0e3cdd9ce37c45ad28d88e4711152b981f90e5..e1cf15451d4b35cf0662070e05166a798001cdb0 100644 (file)
@@ -209,7 +209,7 @@ public class TabbedArea extends Composite {
        }
 
        protected Section getCurrentSection() {
        }
 
        protected Section getCurrentSection() {
-               return (Section) body.getChildren()[0];
+               return (Section) stackLayout.topControl;
        }
 
        public void setTabStyle(String tabStyle) {
        }
 
        public void setTabStyle(String tabStyle) {