Skip to content

Commit 0bcf754

Browse files
EcljpseB0Tniraj-modi
authored andcommitted
Bug 576178 - Selecting "Show Text" on Perspective moves icons
Change-Id: Ibd67e4a84bf750cd2ec6a0dad653286686ef241e Signed-off-by: Joerg Kubitz <[email protected]> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/186124 Tested-by: Platform Bot <[email protected]> Reviewed-by: Niraj Modi <[email protected]>
1 parent 4bf51ab commit 0bcf754

File tree

1 file changed

+1
-0
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets

1 file changed

+1
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolItem.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ public void setText (String string) {
882882
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
883883
if ((style & SWT.SEPARATOR) != 0) return;
884884
if (string.equals (text)) return;
885+
parent.layout(true);
885886
super.setText (string);
886887
if ((state & HAS_AUTO_DIRECTION) == 0 || !updateTextDirection (AUTO_TEXT_DIRECTION)) {
887888
_setText (string);

0 commit comments

Comments
 (0)