Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - 16.3 Crash by Merged Items + Group Row
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

16.3 Crash by Merged Items + Group Row

 Post Reply Post Reply
Author
Message
Keeper View Drop Down
Newbie
Newbie


Joined: 25 November 2011
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Keeper Quote  Post ReplyReply Direct Link To This Post Topic: 16.3 Crash by Merged Items + Group Row
    Posted: 24 February 2014 at 7:44am
The combination of the merged items with a grouping rows leads to a crash when displaying the tooltip.

Problem in the following source code portion:


CRect CXTPReportRow::GetItemRect(CXTPReportRecordItem* pItem, BOOL bAsMerged)
{
...
int nTopmostRow = GetIndex();
while (0 <= nTopmostRow)
{
CXTPReportRow* pTopRow = pRows->GetAt(nTopmostRow - 1);
if (NULL != pTopRow && pTopRow->IsVisible())
{
if (pTopRow->GetRecord()->GetItem(pLeftmostColumn)->GetMergeItem() == pItem
&& pTopRow->GetRecord()->GetItem(pRightmostColumn)->GetMergeItem() == pItem)
{
--nTopmostRow;
continue;
}
}

break;
}
...
}

Bad idea to perform GetRetsord () for a grouping row.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.