| 154 text->color = ASC_RGB(1, 1, 1); |
154 text->color = ASC_RGB(1, 1, 1); |
| 155 } else { |
155 } else { |
| 156 text->color = args.color; |
156 text->color = args.color; |
| 157 } |
157 } |
| 158 if (args.text == NULL) { |
158 if (args.text == NULL) { |
| 159 text->text = cx_mutstr(strdup(" ")); |
159 text->text = cx_strdup(" "); |
| 160 } else { |
160 } else { |
| 161 text->text = cx_mutstr(strdup(args.text)); |
161 text->text = cx_strdup(args.text); |
| 162 } |
162 } |
| 163 if (args.centered) { |
163 if (args.centered) { |
| 164 asc_set_flag(node->flags, ASC_TEXT_CENTERED_FLAG); |
164 asc_set_flag(node->flags, ASC_TEXT_CENTERED_FLAG); |
| 165 } |
165 } |
| 166 |
166 |