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) {
1291
1291
}
1292
1292
1293
1293
private int getMonitorZoom () {
1294
- return getMenu ().getShell ().getMonitor ().zoom ;
1294
+ return getParent ().getShell ().getMonitor ().zoom ;
1295
1295
}
1296
1296
1297
1297
private int getMenuZoom () {
@@ -1425,7 +1425,7 @@ LRESULT wmMeasureChild (long wParam, long lParam) {
1425
1425
}
1426
1426
1427
1427
private Point calculateRenderedTextSize () {
1428
- GC gc = new GC (this .getMenu ().getShell ());
1428
+ GC gc = new GC (this .getParent ().getShell ());
1429
1429
String textWithoutMnemonicCharacter = getText ().replace ("&" , "" );
1430
1430
Point points = gc .textExtent (textWithoutMnemonicCharacter );
1431
1431
gc .dispose ();
You can’t perform that action at this time.
0 commit comments