parent
ded74f6db3
commit
5f137bcc28
1 changed files with 2 additions and 3 deletions
|
@ -151,10 +151,9 @@ public:
|
|||
//Error for this marker is too large. Skip to the next position.
|
||||
if (std::fabs(error_) > max_err_allowed)
|
||||
{
|
||||
if (error_ > spacing_)
|
||||
while (error_ > spacing_)
|
||||
{
|
||||
MAPNIK_LOG_WARN(markers_placement) << "Extremely large error (" << error_ << ") in markers_placement. Please file a bug report.";
|
||||
error_ = 0.0; //Avoid moving backwards
|
||||
error_ -= spacing_; //Avoid moving backwards
|
||||
}
|
||||
spacing_left_ += spacing_ - error_;
|
||||
error_ = 0.0;
|
||||
|
|
Loading…
Reference in a new issue