- dash_fraction = std::min (std::max (dash_fraction, 0.0), 1.0);
- Real on = dash_fraction * dash_period + thick;
- Real off = std::max (0.0, dash_period - on);
+ dash_fraction = min (max (dash_fraction, 0.0), 1.0);
+ Real on = dash_fraction * dash_period;
+ Real off = max (0.0, dash_period - on - thick);