On 19 Feb 2001, Lars Clausen wrote:

> 
> I've now commited the first rough version of the XFig import plugin.
> Several things aren't implemented yet (such as anything poly-like), but
> quite a few things work.  The boxes seem to have trouble with overly
> rounded corners, and most wierdly, the text objects don't get any text in
> them.  All the other text properties (font, color etc) are set nicely,
> but the text never appears.  I'm setting the text with
> 
>     props[0].name = "text";
>     props[0].type = PROP_TYPE_STRING;
>     PROP_VALUE_STRING(props[0]) = strdup(text);
>     new_obj->ops->set_props(new_obj, props, 1);
> 
> -- is there something I've missed there?  (Apart from probably not
> needing the strdup.)

Ok, I found the bug.  It was in textobj.c, it didn't do the quarks right,
so it missed the text property for set_props.  Fixed now, and I'm rapidly
approaching a useable state for the imports.  

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | Hårdgrim of Numenor
"I do not agree with a word that you say, but I    | Retainer of Sir Kegg
will defend to the death your right to say it."    |   of Westfield
    --Evelyn Beatrice Hall paraphrasing Voltaire   | Chaos Berserker of Khorne

Reply via email to