Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2016-11-08 07:36:19 +0000
committerNiraj Modi2016-11-09 06:06:36 +0000
commit0fca83ddbee0ae49a19efd004711d618eef79bc3 (patch)
tree724dc72e38a2facfd7b521bf26c1c4a46c47c83e
parent04020a9328de0da8485a46d59da26b1f658fef10 (diff)
downloadeclipse.platform.swt-0fca83ddbee0ae49a19efd004711d618eef79bc3.tar.gz
eclipse.platform.swt-0fca83ddbee0ae49a19efd004711d618eef79bc3.tar.xz
eclipse.platform.swt-0fca83ddbee0ae49a19efd004711d618eef79bc3.zip
Bug 506637 - [GTK][HiDPI] Infinite loop in
org.eclipse.swt.graphics.Region.translate() Change-Id: Ie74150761a6401a951ad53f20b64f831a7d2ba66 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java
index d9a28bff2c..4b6e668f93 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java
@@ -709,11 +709,8 @@ void translateInPixels (int x, int y) {
public void translate (Point pt) {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (pt == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
- translate(DPIUtil.autoScaleUp(pt));
-}
-
-void translateInPixels (Point pt) {
- translateInPixels (pt.x, pt.y);
+ pt = DPIUtil.autoScaleUp(pt);
+ translateInPixels(pt.x, pt.y);
}
/**

Back to the top