File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1291,7 +1291,7 @@ GC createNewGC(long hDC, GCData data) {
12911291}
12921292
12931293private int getMonitorZoom () {
1294- return getMenu ().getShell ().getMonitor ().zoom ;
1294+ return getParent ().getShell ().getMonitor ().zoom ;
12951295}
12961296
12971297private int getMenuZoom () {
@@ -1425,7 +1425,7 @@ LRESULT wmMeasureChild (long wParam, long lParam) {
14251425}
14261426
14271427private Point calculateRenderedTextSize () {
1428- GC gc = new GC (this .getMenu ().getShell ());
1428+ GC gc = new GC (this .getParent ().getShell ());
14291429 String textWithoutMnemonicCharacter = getText ().replace ("&" , "" );
14301430 Point points = gc .textExtent (textWithoutMnemonicCharacter );
14311431 gc .dispose ();
You can’t perform that action at this time.
0 commit comments