Print Page | Close Window

16.3 Crash by Merged Items + Group Row

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=22218
Printed Date: 27 September 2024 at 2:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 16.3 Crash by Merged Items + Group Row
Posted By: Keeper
Subject: 16.3 Crash by Merged Items + Group Row
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net