src/addObjectDialog.cpp

changeset 498
791c831c8020
parent 493
16766ac1bbd9
child 516
d3373bc7ca3b
equal deleted inserted replaced
497:c51941e590b6 498:791c831c8020
402 402
403 if (obj->isColored()) 403 if (obj->isColored())
404 obj->setColor (dlg.colnum); 404 obj->setColor (dlg.colnum);
405 405
406 if (newObject) 406 if (newObject)
407 { ulong idx = g_win->getInsertionPoint(); 407 { int idx = g_win->getInsertionPoint();
408 LDFile::current()->insertObj (idx, obj); 408 LDFile::current()->insertObj (idx, obj);
409 } 409 }
410 410
411 g_win->fullRefresh(); 411 g_win->fullRefresh();
412 } 412 }

mercurial