Some doc corrections (added blank lines at end of docs); corrected Forty sample
dialog behaviour; added dummy menubar constructors; corrected wxMSW wxRegion bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -351,13 +351,13 @@ void wxRegionIterator::Reset(const wxRegion& region)
|
||||
|
||||
m_rects = new wxRect[header->nCount];
|
||||
|
||||
RECT* rect = (RECT*) (rgnData + sizeof(RGNDATAHEADER)) ;
|
||||
RECT* rect = (RECT*) ((char*)rgnData + sizeof(RGNDATAHEADER)) ;
|
||||
size_t i;
|
||||
for (i = 0; i < header->nCount; i++)
|
||||
{
|
||||
m_rects[i] = wxRect(rect->left, rect->top,
|
||||
rect->right - rect->left, rect->bottom - rect->top);
|
||||
rect += sizeof(RECT);
|
||||
rect ++; // Advances pointer by sizeof(RECT)
|
||||
}
|
||||
|
||||
m_numRects = header->nCount;
|
||||
|
||||
Reference in New Issue
Block a user