Fixed a small bug

svn path=/trunk/boinc/; revision=12627
This commit is contained in:
Charlie Fenton 2007-05-09 11:19:06 +00:00
parent e9ea620da7
commit 684e7fe300
1 changed files with 2 additions and 5 deletions

View File

@ -120,11 +120,8 @@ void wxPieCtrlLegend::OnPaint(wxPaintEvent & /*event*/)
maxwidth = max(maxwidth, (int)(2*m_HorBorder+tw+15));
}
dy += m_VerBorder;
if(w != maxwidth || h != dy) {
SetSize(maxwidth, dy);
w = maxwidth;
h = dy;
}
w = maxwidth;
h = dy;
// Now create the legend box
wxBitmap bmp(w, h);