Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - CXTPReportSection::EnsureVisibleCalc Bug - 15.1.3
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportSection::EnsureVisibleCalc Bug - 15.1.3

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


Joined: 01 December 2009
Location: Seattle, WA
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote PhatChap Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportSection::EnsureVisibleCalc Bug - 15.1.3
    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)       
{
    ...
}



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.172 seconds.