summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe>2010-03-11 16:51:34 +0000
committerBogdan Gheorghe <gheorghe>2010-03-11 16:51:34 +0000
commit4f82af22aa4e3fc99107526cdeabd4b0831a4584 (patch)
tree1ecc17abb19db479abd74c305a6406be9766f2b4
parent86966a73db67de79833a8050a98054210c5b57c9 (diff)
downloadeclipse.platform.swt-4f82af22aa4e3fc99107526cdeabd4b0831a4584.tar.gz
eclipse.platform.swt-4f82af22aa4e3fc99107526cdeabd4b0831a4584.tar.xz
eclipse.platform.swt-4f82af22aa4e3fc99107526cdeabd4b0831a4584.zip
305536 - CTabFolder in single mode shows no text
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
index 4b54764331..2d65199b1e 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
@@ -2344,7 +2344,7 @@ boolean setItemSize(GC gc) {
tab.width = width;
tab.closeRect.width = tab.closeRect.height = 0;
if (showClose || tab.showClose) {
- Point closeSize = renderer.computeSize(selectedIndex, SWT.SELECTED, gc, SWT.DEFAULT, SWT.DEFAULT);
+ Point closeSize = renderer.computeSize(CTabFolderRenderer.PART_CLOSE_BUTTON, SWT.SELECTED, gc, SWT.DEFAULT, SWT.DEFAULT);
tab.closeRect.width = closeSize.x;
tab.closeRect.height = closeSize.y;
}