src/ldObject.cpp

changeset 1063
1f15c52c11f6
parent 1062
4119185b56ca
child 1065
c8ecddbd99e9
equal deleted inserted replaced
1062:4119185b56ca 1063:1f15c52c11f6
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 }

mercurial