Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » [BUG & FIX] in HeaderCtrl::LeftDouble
[BUG & FIX] in HeaderCtrl::LeftDouble [message #43184] Fri, 30 May 2014 10:30 Go to previous message
qapko is currently offline  qapko
Messages: 55
Registered: October 2007
Location: Slovakia
Member
Hello.

I have upgraded my installation of Ultimate++ from version 3211 to 7403 (yes, I was really using it for 3 years!). While testing my application with the new version I incidentally found a bug in method HeaderCtrl::LeftDouble causing my application to crash after double-clicking at the "right place" of HeaderCtrl. I think the problem is that in the method the value returned by GetSplit is not tested by IsNull. I'm not using the functionality at all, so my fix is some kind of blind:

void HeaderCtrl::LeftDouble(Point p, dword keyflags)
{
	int q = GetSplit(p.x);
	if(q >= 0 || IsNull(q))
		return;
	q = -1 - q;
	col[q].WhenLeftDouble();
}

Is the code OK? And aren't there some other places with the same problem?

Have a nice day and thank you for the Ultimate++ Smile

Gabi

[Updated on: Fri, 30 May 2014 10:31]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl: custom ButtonOption inside a cell
Next Topic: [bug?] Can't Convert::Scan rows in ArrayCtrl
Goto Forum:
  


Current Time: Mon Apr 29 15:23:18 CEST 2024

Total time taken to generate the page: 0.03041 seconds