Re: function to resize a UML class object's extent?



On Fri, 30 Nov 2001, Cyrille Chepelov wrote:

Le jeu, nov 29, 2001, à 06:03:42 -0800, Robert Campbell a écrit:
Is any of this perhaps related to the problem that a UML class object
will not shrink when the longest attribute or method shrinks?  I'm
running the Windows version.

maybe... someone has to dig into umlclass_update_data() and see why it
behaves the way it does (I don't think there is anything specifically
Windows, except perhaps a slight but repeatable string width
miscalculation)

Dug.  Umlclass has two operations, umlclass_update_data() and
umlclass_calculate_data().  The latter figures out all the font sizes etc,
and is only called from copy, create, load, apply_properties and
change_apply (through set_state).  Should umlclass_set_props call
umlclass_calculate_data before umlclass_update_data, or is there a call to
obj->apply_properties_func implied in object_set_props_from_offsets?  I'm
losing my way somewhere in propoffsets.c:)  I'm thinking that extra call
might help it.

-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   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]