fix draw-arc to skip drawing instead of setting the scale to 0

svn: r16502
This commit is contained in:
Matthew Flatt 2009-11-02 16:22:10 +00:00
parent 16e3ee3e6c
commit b877098bac

View File

@ -1218,6 +1218,8 @@ void wxWindowDC::DrawArc(double x, double y, double w, double h, double start, d
ww = SmoothingXFormWL(w, x);
hh = SmoothingXFormHL(h, y);
if ((ww > 0.0) && (hh > 0.0)) {
cairo_save(CAIRO_DEV);
cairo_set_matrix_create(m);
cairo_current_matrix (CAIRO_DEV, m);
cairo_translate(CAIRO_DEV, xx, yy);
@ -1226,8 +1228,10 @@ void wxWindowDC::DrawArc(double x, double y, double w, double h, double start, d
cairo_arc_negative(CAIRO_DEV, 0.5, 0.5, 0.5, start, end);
cairo__set_matrix(CAIRO_DEV, m);
cairo_stroke(CAIRO_DEV);
cairo_restore(CAIRO_DEV);
cairo_matrix_destroy(m);
}
}
return;
}