Opened 15 years ago

Last modified 14 years ago

#2791 closed defect

Bug with many-rows cells in the last column

Reported by: mbukovskiy Owned by:
Priority: high Milestone:
Component: GUI-generic Version:
Keywords: Cc: mbukovskiy, vadz
Blocked By: Blocking:
Patch: no

Description

Many-rows cells in the last column are displayed not
correctly. There are grid lines inside cell. I found this bug
in version 2.4.2, now i use version 2.6.1 and the problem
still present.

Change History (3)

comment:1 Changed 15 years ago by mbukovskiy

It is easy to see the bug - place following line into "grid"
example at the end of constructor:
grid->SetCellSize(2,grid->GetNumberCols()-1,2,1);
But if you change line to
grid->SetCellSize(2,grid->GetNumberCols()-2,2,1);
bug disapear. Hence, bug take place in the last column only!

comment:2 Changed 15 years ago by mbukovskiy

Problem solution:
in wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion &
WXUNUSED(reg) )
line 7183 (approx) before bug fix

for (j=topRow; j<bottomRow; j++)
{

for (i=leftCol; i<rightCol; i++)

after bug fix

for (j=topRow; j<=bottomRow; j++)
{

for (i=leftCol; i<=rightCol; i++)

comment:3 Changed 14 years ago by vadz

Thanks for your fix! It will be included in wx 2.7.2.

Please submit the bugs with fixes as patches, they're
applied much more quickly then. Thanks in advance!

Note: See TracTickets for help on using tickets.