Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-02-05 12:07:17 +0000
committerLars Vogel2019-02-05 13:30:03 +0000
commit8c86bb41bb48ccdb80f6cbe5f1ac5bf47dcd4f9f (patch)
tree0802c924b51bd1d19c3a7050d85f1ed471ba2336
parentd1216ef9bfc0a0e5be3a218c1e02c011443f78ae (diff)
downloadeclipse.platform.ui-8c86bb41bb48ccdb80f6cbe5f1ac5bf47dcd4f9f.tar.gz
eclipse.platform.ui-8c86bb41bb48ccdb80f6cbe5f1ac5bf47dcd4f9f.tar.xz
eclipse.platform.ui-8c86bb41bb48ccdb80f6cbe5f1ac5bf47dcd4f9f.zip
Bug 505987 - Freeze at
org.eclipse.swt.internal.gtk.OS._gdk_window_get_origin Micro-optimzation to avoid unnecessary local object allocation. Change-Id: I46d709b8e1929a872dc19a106edd30ecf52e327b Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java
index f239832fd81..b2092dc1445 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java
@@ -622,8 +622,8 @@ public class ControlDecoration {
// Listener for painting the decoration
paintListener = event -> {
- Control control = (Control) event.widget;
if (shouldShowDecoration()) {
+ Control control = (Control) event.widget;
Rectangle rect = getDecorationRectangle(control);
event.gc.drawImage(getImage(), rect.x, rect.y);
}

Back to the top