| 147 | } |
| 148 | |
| 149 | ImStudio::BaseObject *ImStudio::BufferWindow::getbaseobj(int id) |
| 150 | { |
| 151 | for (Object &o : objects) |
| 152 | { |
| 153 | if (o.id == id) |
| 154 | { |
| 155 | return &o; |
| 156 | } |
| 157 | if (!o.child.objects.empty()) |
| 158 | { |
| 159 | for (BaseObject &cw : o.child.objects) |
| 160 | { |
| 161 | if (cw.id == id) |
| 162 | { |
| 163 | return &cw; |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | } |
| 168 | return nullptr; |
| 169 | } |
| 170 | |
| 171 | void ImStudio::BufferWindow::create(std::string type_, bool atcursor) |
| 172 | { |
no test coverage detected