Print Page | Close Window

CXTPReportSection::EnsureVisibleCalc Bug - 15.1.3

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=19027
Printed Date: 31 May 2025 at 10:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportSection::EnsureVisibleCalc Bug - 15.1.3
Posted By: PhatChap
Subject: CXTPReportSection::EnsureVisibleCalc Bug - 15.1.3
Date Posted: 06 October 2011 at 11:55am

Simple > vs >= bug

The while loop breaks on less than, the next if checks for greater than. If they are equal the function just exits.

        

// Figure out if row is fully visible       
while ((top < m_rcSection.bottom) && (nIndex <= nIndexRow) && (nIndex < nCount))
{
    ...       
}

// Row not fully visible       
if (top > m_rcSection.bottom)       
{
    ...
}






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