X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/573bd31feb9602c32eeb5b4036f35050249dc394..004867dbc54950a43acc7d250fa4a966f046a679:/src/common/wrapsizer.cpp?ds=inline diff --git a/src/common/wrapsizer.cpp b/src/common/wrapsizer.cpp index 3884201b44..adca07fc18 100644 --- a/src/common/wrapsizer.cpp +++ b/src/common/wrapsizer.cpp @@ -112,7 +112,7 @@ void wxWrapSizer::ClearRows() row->GetChildren().clear(); wxPropChanger * const - propChanger = wx_static_cast(wxPropChanger *, item->GetUserData()); + propChanger = static_cast(item->GetUserData()); if ( propChanger ) { // this deletes propChanger and so restores the old proportion @@ -425,7 +425,7 @@ void wxWrapSizer::CalcMinFromMinor(int totMinor) wxSizerItem *item = node->GetData(); if ( item->IsShown() ) { - sz = item->GetMinSize(); + sz = item->GetMinSizeWithBorder(); if ( line->m_width+SizeInMajorDir(sz)>lineSize ) { line = new wxWrapLine; @@ -458,7 +458,7 @@ void wxWrapSizer::CalcMinFromMinor(int totMinor) // Take what is not used on this line, see how much extension we get // by adding first item on next line. int size = lineSize-lines[ix]->m_width; // Left over at end of this line - int extSize = GetSizeInMajorDir(lines[ix+1]->m_first->GetMinSize()) - size; + int extSize = GetSizeInMajorDir(lines[ix+1]->m_first->GetMinSizeWithBorder()) - size; if ( (extSize>=tailSize && (extSizebestExtSize && bestExtSizeIsShown() ) continue; - wxSize minItemSize = item->GetMinSize(); + wxSize minItemSize = item->GetMinSizeWithBorder(); const int itemMajor = SizeInMajorDir(minItemSize); const int itemMinor = SizeInMinorDir(minItemSize); if ( itemMajor > 0 && itemMajor < m_minItemMajor )