/[public]/psiconv/trunk/lib/psiconv/data.c
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/data.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 159 Revision 167
488{ 488{
489 if (section) 489 if (section)
490 free(section); 490 free(section);
491} 491}
492 492
493void psiconv_free_object(psiconv_object object) 493void psiconv_free_embedded_object_section
494 (psiconv_embedded_object_section object)
494{ 495{
495 if (object) { 496 if (object) {
496 psiconv_free_object_icon_section(object->icon); 497 psiconv_free_object_icon_section(object->icon);
497 psiconv_free_object_display_section(object->display); 498 psiconv_free_object_display_section(object->display);
498 psiconv_free_file(object->object); 499 psiconv_free_file(object->object);
501} 502}
502 503
503void psiconv_free_in_line_layout_aux(void * layout) 504void psiconv_free_in_line_layout_aux(void * layout)
504{ 505{
505 psiconv_free_character_layout(((psiconv_in_line_layout) layout)->layout); 506 psiconv_free_character_layout(((psiconv_in_line_layout) layout)->layout);
506 psiconv_free_object(((psiconv_in_line_layout) layout)->object); 507 psiconv_free_embedded_object_section
508 (((psiconv_in_line_layout) layout)->object);
507} 509}
508 510
509void psiconv_free_in_line_layout(psiconv_in_line_layout layout) 511void psiconv_free_in_line_layout(psiconv_in_line_layout layout)
510{ 512{
511 if (layout) { 513 if (layout) {
1341psiconv_sketch_section psiconv_empty_sketch_section(void) 1343psiconv_sketch_section psiconv_empty_sketch_section(void)
1342{ 1344{
1343 psiconv_sketch_section result; 1345 psiconv_sketch_section result;
1344 if (!(result = malloc(sizeof(*result)))) 1346 if (!(result = malloc(sizeof(*result))))
1345 goto ERROR1; 1347 goto ERROR1;
1346 result->form_xsize = 320; 1348 result->displayed_xsize = 320;
1347 result->form_ysize = 200; 1349 result->displayed_ysize = 200;
1348 result->picture_x_offset = result->picture_y_offset = result->picture_xsize = 1350 result->picture_data_x_offset = result->picture_data_y_offset =
1349 result->picture_ysize = 0; 1351 result->form_xsize = result->form_ysize =
1352 result->displayed_size_x_offset = result->displayed_size_y_offset = 0;
1350 result->magnification_x = result->magnification_y = 1.0; 1353 result->magnification_x = result->magnification_y = 1.0;
1351 result->cut_left = result->cut_right = result->cut_top = 1354 result->cut_left = result->cut_right = result->cut_top =
1352 result->cut_bottom = 0.0; 1355 result->cut_bottom = 0.0;
1353 if (!(result->picture = psiconv_empty_paint_data_section())) 1356 if (!(result->picture = psiconv_empty_paint_data_section()))
1354 goto ERROR2; 1357 goto ERROR2;

Legend:
Removed from v.159  
changed lines
  Added in v.167

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26