Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2016-11-11 10:45:56 +0000
committerGerrit Code Review @ Eclipse.org2016-11-11 11:18:22 +0000
commit8caebc22c337a2c4766ccbf1fb742275334f7c94 (patch)
treeb9c7e95aba7ad5fd77d41155f29a23ef425b0261 /bundles
parent6e6ad4f39a813773610faebf63d92da4da6e06fa (diff)
downloadorg.eclipse.rap-8caebc22c337a2c4766ccbf1fb742275334f7c94.tar.gz
org.eclipse.rap-8caebc22c337a2c4766ccbf1fb742275334f7c94.tar.xz
org.eclipse.rap-8caebc22c337a2c4766ccbf1fb742275334f7c94.zip
Fix drawing of filled arc
Fill arc should produce a piece of pie instead of slice of a circle. This regression has been introduced with change 7d072db9b02b3b04e3c635440ae65dd8758f07cb. 507392: Drawing a filled arc does not produce a pie https://bugs.eclipse.org/bugs/show_bug.cgi?id=507392 Change-Id: Ia6f222fd3657af3c7e1f308d72c972ab5912d04c
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/widgets/canvaskit/GCOperationWriter.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/widgets/canvaskit/GCOperationWriter.java b/bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/widgets/canvaskit/GCOperationWriter.java
index a27fd7dd8a..340a0c7725 100644
--- a/bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/widgets/canvaskit/GCOperationWriter.java
+++ b/bundles/org.eclipse.rap.rwt/widgetkits/org/eclipse/swt/internal/widgets/canvaskit/GCOperationWriter.java
@@ -237,6 +237,7 @@ final class GCOperationWriter {
.add( arcAngle < 0 )
);
if( operation.fill ) {
+ addClientOperation( "lineTo", 0, 0 );
addClientOperation( "closePath" );
}
addClientOperation( operation.fill ? "fill" : "stroke" );

Back to the top