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 » Problem with IsRowEditable
Problem with IsRowEditable [message #36181] Wed, 09 May 2012 12:18 Go to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Hello Daniel

Actual implementation is:
bool GridCtrl::IsRowEditable(int r)
{
	if(r < 0)
		r = curpos.y;
	else
		r += fixed_rows;
	
	return vitems[r].editable && hitems[curpos.x].editable;
}

I have found possible to call IsRowEditable() with r = -1 and curpos.y = -1, so an exception is thrown because of vitems[-1].

May you check this case in the function?



Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ColorScheme for individual cells
Next Topic: Jsonize for GridCtrl
Goto Forum:
  


Current Time: Sun Apr 28 13:58:01 CEST 2024

Total time taken to generate the page: 0.04015 seconds