fixed pagebreaks computation in tables (#9935, patch by D.J.Stauffer)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -108,7 +108,12 @@ bool wxHtmlPageBreakCell::AdjustPagebreak(int* pagebreak, wxArrayInt& known_page
|
|||||||
// m_PosY is only the vertical offset from the parent. The pagebreak
|
// m_PosY is only the vertical offset from the parent. The pagebreak
|
||||||
// required here is the total page offset, so m_PosY must be added
|
// required here is the total page offset, so m_PosY must be added
|
||||||
// to the parent's offset and height.
|
// to the parent's offset and height.
|
||||||
int total_height = m_PosY + GetParent()->GetPosY() + GetParent()->GetHeight();
|
int total_height = m_PosY;
|
||||||
|
for ( wxHtmlCell *parent = GetParent(); parent; parent = parent->GetParent() )
|
||||||
|
{
|
||||||
|
total_height += parent->GetPosY();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Search the array of pagebreaks to see whether we've already set
|
// Search the array of pagebreaks to see whether we've already set
|
||||||
// a pagebreak here. The standard bsearch() function is appropriate
|
// a pagebreak here. The standard bsearch() function is appropriate
|
||||||
|
Reference in New Issue
Block a user