228 { |
228 { |
229 int idx = lineNumber(); |
229 int idx = lineNumber(); |
230 |
230 |
231 if (idx != -1 and not others.isEmpty()) |
231 if (idx != -1 and not others.isEmpty()) |
232 { |
232 { |
233 for (int i = 1; i < others.size(); ++i) |
233 for (int i = 1; i < length(others); ++i) |
234 document()->insertObject (idx + i, others[i]); |
234 document()->insertObject (idx + i, others[i]); |
235 |
235 |
236 document()->setObjectAt (idx, others[0]); |
236 document()->setObjectAt (idx, others[0]); |
237 destroy(); |
237 destroy(); |
238 } |
238 } |