Commit b42627c1 authored by Claes Sjofors's avatar Claes Sjofors

Ge scale dynamic: negative scalefactors zeroed

parent be3117b3
......@@ -785,6 +785,11 @@ void GrowNode::set_scale( double scale_x, double scale_y,
{
double old_x_left, old_x_right, old_y_low, old_y_high;
if ( scale_x < 0)
scale_x = 0;
if ( scale_y < 0)
scale_y = 0;
if ( trf.s_a11 && trf.s_a22 &&
fabs( scale_x - trf.a11 / trf.s_a11) < FLT_EPSILON &&
fabs( scale_y - trf.a22 / trf.s_a22) < FLT_EPSILON)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment