Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2016-07-19 16:40:50 +0000
committerNiraj Modi2016-07-25 16:43:19 +0000
commit0cd5ecf21555efcf4b2e4629cd2ff969ca609fc1 (patch)
tree6276276214b10aa7538fdc6bdd8ee20dfd13e59d
parentcde5f21861dbdc5dd5a57c530330b1ef34afb251 (diff)
downloadeclipse.platform.swt-0cd5ecf21555efcf4b2e4629cd2ff969ca609fc1.tar.gz
eclipse.platform.swt-0cd5ecf21555efcf4b2e4629cd2ff969ca609fc1.tar.xz
eclipse.platform.swt-0cd5ecf21555efcf4b2e4629cd2ff969ca609fc1.zip
Bug 495849 - [HiDPI][Win32][GTK] IllegalArgumentException below
MarketplaceViewer$4.run (thrown in TextLayout.setWidthInPixels) Change-Id: I95d122722b2dabafe7be1bd184eae28bbe38df0d Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java
index b3970f1c63..bfbdac9eed 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Link.java
@@ -124,7 +124,7 @@ Point computeSizeInPixels (int wHint, int hHint, boolean changed) {
int layoutWidth = layout.getWidth ();
//TEMPORARY CODE
if (wHint == 0) {
- layout.setWidth (DPIUtil.autoScaleDown(1));
+ layout.setWidth (1);
Rectangle rect = DPIUtil.autoScaleUp(layout.getBounds ());
width = 0;
height = rect.height;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
index 92f17f36dc..552af12d49 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
@@ -210,7 +210,7 @@ long /*int*/ callWindowProc (long /*int*/ hwnd, int msg, long /*int*/ wParam, lo
int layoutWidth = layout.getWidth ();
//TEMPORARY CODE
if (wHint == 0) {
- layout.setWidth (DPIUtil.autoScaleDown(1));
+ layout.setWidth (1);
Rectangle rect = DPIUtil.autoScaleUp(layout.getBounds ());
width = 0;
height = rect.height;

Back to the top