![]() |
Bug fix to reports tree drawing |
Post Reply
|
| Author | |
Torlack
Newbie
Joined: 01 July 2004 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: Bug fix to reports tree drawingPosted: 03 December 2004 at 12:28pm |
|
Given the following tree layout, the tree structure fails to draw correctly in the report.
1 x2 xx3 xxx4 xxx5 x6 The DrawTreeStructure routine is broken and would not draw the line between 2 and 6 in the rows containing 4 and 5. Here is the fix, to just the while loop. pRow = pRow->GetParentRow(); if (pRow == NULL || pRow->GetParentRow() == 0 || pRow->IsGroupRow()) { break; } rcItem.OffsetRect(-nTreeIndent, 0); if (!pRow->IsLastTreeRow()) { pDC->FillSolidRect(rcItem.left, rcItem.top - 1, 1, rcItem.Height() + 1, clrTreeStructure); } The "IsLastTreeRow" was causing it to abort early. In my simple (and maybe wrong) fix, I only used it to test to see if we draw the line. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 December 2004 at 7:44am |
|
Sorry for our bad testing, you are rigtht. We fixed it as you suggest.
Thank you for your help! |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |