minor formatting

This commit is contained in:
Dane Springmeyer 2012-03-05 18:00:15 -08:00
parent 3c594efec8
commit df54f710bc

View file

@ -439,7 +439,9 @@ void placement_finder<DetectorT>::find_point_placement(double label_x,
// if there is an overlap with existing envelopes, then exit - no placement
if (!detector_.extent().intersects(e) ||
(!p.allow_overlap && !detector_.has_point_placement(e, pi.get_actual_minimum_distance()))
(!p.allow_overlap &&
!detector_.has_point_placement(e, pi.get_actual_minimum_distance())
)
)
{
return;
@ -907,7 +909,10 @@ bool placement_finder<DetectorT>::test_placement(std::auto_ptr<text_path> const&
y - (cwidth*sina + ci.height()*cosa));
if (!detector_.extent().intersects(e) ||
!detector_.has_placement(e, info_.get_string(), pi.get_actual_minimum_distance()))
(!p.allow_overlap &&
!detector_.has_placement(e, info_.get_string(), pi.get_actual_minimum_distance())
)
)
{
//std::clog << "No Intersects:" << !dimensions_.intersects(e) << ": " << e << " @ " << dimensions_ << std::endl;
//std::clog << "No Placements:" << !detector_.has_placement(e, info.get_string(), p.minimum_distance) << std::endl;