Home » Community » U++ community news and announcements » Upp 705-dev2 released
Re: Upp 705-dev2 released [message #9624 is a reply to message #9623] |
Tue, 22 May 2007 13:36   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
There is a bug in ColumnList::GetDragSample. The correct code is:
Image ColumnList::GetDragSample()
{
Size sz = StdSampleSize();
ImageDraw iw(sz);
int y = 0;
for(int i = 0; i < GetCount() && y < sz.cy; i++)
if(IsSel(i)) {
PaintItem(iw, i, RectC(0, y, sz.cx, cy));
y += cy;
}
return Crop(iw, 0, 0, sz.cx, y);
}
The original was missing the y increment and the Crop call.
James
|
|
|
Goto Forum:
Current Time: Sun Jun 29 22:48:33 CEST 2025
Total time taken to generate the page: 0.03712 seconds
|