/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2011--2012 Mike Solomon <mike@apollinemike.com>
+ Copyright (C) 2011--2015 Mike Solomon <mike@mikesolomon.org>
Jan Nieuwenhuizen <janneke@gnu.org>
LilyPond is free software: you can redistribute it and/or modify
*/
#include "interval-minefield.hh"
-#include "grob.hh"
+
Interval_minefield::Interval_minefield (Interval feasible_placements, Real bulk)
{
feasible_placements_ = feasible_placements;
dirty = false;
for (vsize i = 0; i < forbidden_intervals_.size (); i++)
{
- Direction d = DOWN;
- do
+ for (DOWN_and_UP (d))
{
Interval feasible_widened = Interval (feasible_placements_[d], feasible_placements_[d]);
feasible_widened.widen (bulk_ / 2.);
dirty = true;
}
}
- while (flip (&d) != DOWN);
}
}
while (dirty);
-}
\ No newline at end of file
+}