From 74b563c7569918cca0730a8c4ec235141a76a69f Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 22 Jan 2007 02:22:36 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11917 --- checkin_notes | 6 ++++++ clientgui/common/wxPieCtrl.cpp | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 9ce335eec0..6838bd1164 100755 --- a/checkin_notes +++ b/checkin_notes @@ -913,3 +913,9 @@ Walt 19 Jan 2007 clientgui/ BOINCBaseFrame.cpp +2019 Jan 2007 + MGR: wxPieCtrl changes from Frank Wieler. + + clientgui/ + common/ + wxPieCtrl.cpp diff --git a/clientgui/common/wxPieCtrl.cpp b/clientgui/common/wxPieCtrl.cpp index c60b387e62..48140457f8 100644 --- a/clientgui/common/wxPieCtrl.cpp +++ b/clientgui/common/wxPieCtrl.cpp @@ -202,12 +202,11 @@ wxPieCtrl::wxPieCtrl(wxWindow * parent, wxWindowID id, wxPoint pos, /* handles mouse motion events */ void wxPieCtrl::OnMouseMove(wxMouseEvent& ev) { - ev.Skip(); #if defined(__WXMSW__) || defined(__WXMAC__) //get the pie part, over which the mouse pointer is int piepart = GetCoveredPiePart(ev.GetX(),ev.GetY()); //part identified - if(piepart >=0) { + if(piepart >=0) { //prevent tooltip flicker if(piepart != m_lastCoveredPart) { wxString tooltip = this->m_Series[piepart].GetLabel(); @@ -220,6 +219,7 @@ void wxPieCtrl::OnMouseMove(wxMouseEvent& ev) { m_lastCoveredPart=-1; } #endif //__WXMAC__ || __WXMSW__ + ev.Skip(); } /* gets the pie part on coords using pixel colour */ @@ -414,7 +414,7 @@ void wxPieCtrl::Draw(wxPaintDC & pdc) //no angle cy = (int)(h/2 - (min(w,h)/2)); circlew = min(w,h); - circleh = w; + circleh = circlew; } for(x = 0; x <= 2 * M_PI; x += 0.05) {