fix update for borderless tabs and for group panels

svn: r10050
This commit is contained in:
Matthew Flatt 2008-05-30 17:00:30 +00:00
parent 1f26ed61e9
commit 5399cf9b43

View File

@ -936,7 +936,17 @@ void wxCanvas::PaintRgn(RgnHandle rgn)
if (!cHidden) {
if (cStyle & wxAS_CONTROL) {
/* Run on-paint atomically */
RgnHandle old;
old = wx_dc->clip_reg;
wx_dc->clip_reg = rgn;
wx_dc->SetCanvasClipping();
MrEdAtomicallyPaint(this);
wx_dc->clip_reg = old;
wx_dc->SetCanvasClipping();
} else {
AddPaintRegion(rgn);
/* In wx_frame.cc: */