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 #32002 is a reply to message #31965] Sat, 16 April 2011 20:42 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14256
Registered: November 2005
Ultimate Member
Should be fixed now.

kohait00 wrote on Tue, 12 April 2011 03:44


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


Well, Rect<double> is a strange beast. The problem is that whereas for integer types, it is possible to define that points of rect are defined as

(x >= left && x < right && y >= yop && y < bottom)

for double this is not a good solution, you rather need

(x >= left && x <= right && y >= yop && y <= bottom)

which is the source of all differencies.
 
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 06:23:16 CEST 2025

Total time taken to generate the page: 0.00810 seconds