Skip to content

Commit 3b70c39

Browse files
authored
Merge pull request #557 from eclipse/bugfix/Issue_556_Transform_not_disposed_on_the_AnalogClockPainter
Bug #556 - Transform not disposed on the AnalogClockPainter
2 parents 6c538c0 + e11257c commit 3b70c39

File tree

1 file changed

+0
-6
lines changed
  • widgets/cdatetime/org.eclipse.nebula.widgets.cdatetime/src/org/eclipse/nebula/widgets/cdatetime

1 file changed

+0
-6
lines changed

widgets/cdatetime/org.eclipse.nebula.widgets.cdatetime/src/org/eclipse/nebula/widgets/cdatetime/AnalogClockPainter.java

-6
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ public final void paintContent(VControl control, Event e) {
8080
angleH = cal.get(Calendar.HOUR) * 30 + cal.get(Calendar.MINUTE) / 2;
8181
}
8282

83-
Transform o = new Transform(e.display);
84-
e.gc.getTransform(o);
85-
8683
int lwidth = e.gc.getLineWidth();
8784
e.gc.setLineWidth(1);
8885

@@ -110,7 +107,6 @@ public final void paintContent(VControl control, Event e) {
110107
}
111108

112109
control.setAlpha(e.gc);
113-
e.gc.setTransform(o);
114110
e.gc.setBackground(e.display.getSystemColor(SWT.COLOR_GRAY));
115111
e.gc.fillOval(picker.dialCenter.x + 1, picker.dialCenter.y + 1, 6,
116112
6);
@@ -164,8 +160,6 @@ public final void paintContent(VControl control, Event e) {
164160
e.gc.setLineWidth(1);
165161
}
166162

167-
e.gc.setTransform(o);
168-
169163
control.setAlpha(e.gc);
170164

171165
e.gc.setBackground(e.display.getSystemColor(SWT.COLOR_DARK_GRAY));

0 commit comments

Comments
 (0)