作図ソフト dia の改良版
Révision | 74da7e63a76fe27d41fae603f2acb946d15d0650 (tree) |
---|---|
l'heure | 2001-06-12 19:51:25 |
Auteur | Cyrille Chepelov <cyrille@src....> |
Commiter | Cyrille Chepelov |
final hunt for lazyprops debris
@@ -163,8 +163,14 @@ connpointline_load(Object *obj,ObjectNode obj_node, | ||
163 | 163 | const gchar *name, int default_nc,int *realconncount) |
164 | 164 | { |
165 | 165 | ConnPointLine *cpl; |
166 | + int nc = default_nc; | |
167 | + AttributeNode attr; | |
168 | + | |
169 | + attr = object_find_attribute(obj_node, name); | |
170 | + if (attr != NULL) | |
171 | + nc = data_int(attribute_first_data(attr)); | |
172 | + cpl = connpointline_create(obj,nc); | |
166 | 173 | |
167 | - cpl = connpointline_create(obj,load_int(obj_node,name,default_nc)); | |
168 | 174 | if (realconncount) (*realconncount) += cpl->num_connections; |
169 | 175 | return cpl; |
170 | 176 | /* NOT this ! |