------------------------------------------------------------------------
| 58 | |
| 59 | //------------------------------------------------------------------------ |
| 60 | void path_renderer::end_path() |
| 61 | { |
| 62 | if(m_attr_storage.size() == 0) |
| 63 | { |
| 64 | throw exception("end_path : The path was not begun"); |
| 65 | } |
| 66 | path_attributes attr = cur_attr(); |
| 67 | unsigned idx = m_attr_storage[m_attr_storage.size() - 1].index; |
| 68 | attr.index = idx; |
| 69 | m_attr_storage[m_attr_storage.size() - 1] = attr; |
| 70 | pop_attr(); |
| 71 | } |
| 72 | |
| 73 | //------------------------------------------------------------------------ |
| 74 | void path_renderer::move_to(double x, double y, bool rel) // M, m |
no test coverage detected