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

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

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

Revision 79 Revision 80
86 if (!value) { 86 if (!value) {
87 psiconv_warn(0,psiconv_buffer_length(buf),"Null bullet"); 87 psiconv_warn(0,psiconv_buffer_length(buf),"Null bullet");
88 return -PSICONV_E_GENERATE; 88 return -PSICONV_E_GENERATE;
89 } 89 }
90 90
91 if (!(extra_buf = psiconv_buffer_new(0))) 91 if (!(extra_buf = psiconv_buffer_new()))
92 return -PSICONV_E_NOMEM; 92 return -PSICONV_E_NOMEM;
93 if ((res = psiconv_write_size(extra_buf,value->font_size))) 93 if ((res = psiconv_write_size(extra_buf,value->font_size)))
94 goto ERROR; 94 goto ERROR;
95 if ((res = psiconv_write_u8(extra_buf,value->character))) 95 if ((res = psiconv_write_u8(extra_buf,value->character)))
96 goto ERROR; 96 goto ERROR;
140 140
141 if (!value) { 141 if (!value) {
142 psiconv_warn(0,psiconv_buffer_length(buf),"Null paragraph layout list"); 142 psiconv_warn(0,psiconv_buffer_length(buf),"Null paragraph layout list");
143 return -PSICONV_E_GENERATE; 143 return -PSICONV_E_GENERATE;
144 } 144 }
145 if (!(extra_buf = psiconv_buffer_new(0))) 145 if (!(extra_buf = psiconv_buffer_new()))
146 return -PSICONV_E_NOMEM; 146 return -PSICONV_E_NOMEM;
147 147
148 if (!base || psiconv_compare_color(base->back_color,value->back_color)) { 148 if (!base || psiconv_compare_color(base->back_color,value->back_color)) {
149 if ((res = psiconv_write_u8(extra_buf,0x01))) 149 if ((res = psiconv_write_u8(extra_buf,0x01)))
150 goto ERROR; 150 goto ERROR;
349 psiconv_buffer extra_buf; 349 psiconv_buffer extra_buf;
350 if (!value) { 350 if (!value) {
351 psiconv_warn(0,psiconv_buffer_length(buf),"Null character layout list"); 351 psiconv_warn(0,psiconv_buffer_length(buf),"Null character layout list");
352 return -PSICONV_E_GENERATE; 352 return -PSICONV_E_GENERATE;
353 } 353 }
354 if (!(extra_buf = psiconv_buffer_new(0))) 354 if (!(extra_buf = psiconv_buffer_new()))
355 return -PSICONV_E_NOMEM; 355 return -PSICONV_E_NOMEM;
356 356
357 if (!base || psiconv_compare_color(base->color,value->color)) { 357 if (!base || psiconv_compare_color(base->color,value->color)) {
358 if ((res = psiconv_write_u8(extra_buf,0x19))) 358 if ((res = psiconv_write_u8(extra_buf,0x19)))
359 goto ERROR; 359 goto ERROR;

Legend:
Removed from v.79  
changed lines
  Added in v.80

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