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 » U++ Widgets - General questions or Mixed problems » DropList bug when removing last item
Re: DropList bug when removing last item [message #14810 is a reply to message #14804] Sat, 15 March 2008 15:25 Go to previous messageGo to previous message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
I guess it could be solved also by adding:
	Sync();

in DropList.cpp(line 88) in Remove function
void DropList::Remove(int i)
{
	key.Remove(i);
	list.Remove(i);
	Adjust();
	Sync();
}

Sync-inc seems the right behavior since almost all functions from DropList do that.

PS:Mirek, could you explain if I'm wrong?


cdabbd745f1234c2751ee1f932d1dd75

[Updated on: Sat, 15 March 2008 15:28]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Controls & classes design questions
Next Topic: exception failure
Goto Forum:
  


Current Time: Sun Apr 27 02:52:49 CEST 2025

Total time taken to generate the page: 0.00754 seconds