One bug fix for distribute feature

This commit is contained in:
Matthias Koefferlein 2020-08-08 14:40:11 +02:00
parent 1a191fbee9
commit 2714b34104
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ private:
coord_type pnew = box_position<Box, horizontally> (current, 1) + space;
if (db::coord_traits<coord_type>::less (0, pitch)) {
pnew = coord_type (ceil (double (pnew + offset - p0) / double (pitch) - 1e-10)) * pitch - offset;
pnew = coord_type (ceil (double (pnew + offset - p0) / double (pitch) - 1e-10)) * pitch - offset + p0;
}
db::vector<coord_type> mv;