Grid reference in drawing styles is split for each grid line

The dimensions with grid reference are always referenced only to the closest grid line and not to all grid lines.