Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2016-05-16 08:15:22 +0000
committerAlexander Kurtakov2016-05-16 08:15:22 +0000
commitfe4f8bb968ea3bc87cd534a5996cb18aa246f3b0 (patch)
treeea2a7236e19a20ae374ce92d5b3a4e5c8fc48ade
parent48a0d624567fcff93e51d02e0261f9dbf0878bac (diff)
downloadeclipse.platform.swt-fe4f8bb968ea3bc87cd534a5996cb18aa246f3b0.tar.gz
eclipse.platform.swt-fe4f8bb968ea3bc87cd534a5996cb18aa246f3b0.tar.xz
eclipse.platform.swt-fe4f8bb968ea3bc87cd534a5996cb18aa246f3b0.zip
Bug 493722 - GC#setLineAttributes does not apply its argument to GC
Add forgotten setLineAttributesInPixels call at the end of the function. Excellent bug report. Change-Id: Ib610b4217b6c8834eeb16260a44b789df2d6564d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
index 8f1140b9b7..d9324b263e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
@@ -3755,6 +3755,7 @@ public void setLineAttributes(LineAttributes attributes) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (attributes == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
attributes.width = DPIUtil.autoScaleUp(attributes.width);
+ setLineAttributesInPixels(attributes);
}
void setLineAttributesInPixels(LineAttributes attributes) {
int mask = 0;

Back to the top