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++ Core » Rect_<T>::SetNull not correct for Rectf (Rect_<double>)
Re: Rect_<T>::SetNull not correct for Rectf (Rect_<double>) [message #31965 is a reply to message #31959] Tue, 12 April 2011 09:44 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
the question is which of the 2 API calls is the right one. since currently there are the 2.

this recently added approach is one similar to Size..

so it probably should be sth like
template <>
inline Rect_<double>::Rect_(const Nuller&) {
	SetNull();
}


it seems as if there is some duplicated code

EDIT:
the problem seems to be that Rect_<double> seems to need a different Null handling

EDIT: mirek could clear up why Rect_<double> needs extra treatment (i imagine because of Ctrl drawing handling)

but maybe the above approach could be generalized for both

[Updated on: Tue, 12 April 2011 11:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ADDs: ValueMap
Next Topic: FIX: UPP::Scan returns int64 for INT_V
Goto Forum:
  


Current Time: Wed Apr 30 03:40:36 CEST 2025

Total time taken to generate the page: 0.00493 seconds