Commit 782c3c0e authored by Jim Evins's avatar Jim Evins

Completely disable word-wrap of text objects when auto_shrink is enabled.

Fixes glabels issue #29.
parent a0b7942b
......@@ -1179,7 +1179,7 @@ layout_text (glLabelText *this,
pango_layout_set_text (layout, text, -1);
pango_layout_set_spacing (layout, font_size * (this->priv->line_spacing-1) * PANGO_SCALE / scale_x);
if (raw_w == 0.0)
if ( (raw_w == 0.0) || auto_shrink )
{
pango_layout_set_width (layout, -1);
}
......
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