650 DEFINE_ACTION (Demote, 0) |
650 DEFINE_ACTION (Demote, 0) |
651 { QList<LDObject*> sel = selection(); |
651 { QList<LDObject*> sel = selection(); |
652 int num = 0; |
652 int num = 0; |
653 |
653 |
654 for (LDObject* obj : sel) |
654 for (LDObject* obj : sel) |
655 { if (obj->getType() != LDObject::CndLine) |
655 { if (obj->getType() != LDObject::CondLine) |
656 continue; |
656 continue; |
657 |
657 |
658 LDLine* repl = static_cast<LDCndLine*> (obj)->demote(); |
658 LDLine* repl = static_cast<LDCondLine*> (obj)->demote(); |
659 g_win->R()->compileObject (repl); |
659 g_win->R()->compileObject (repl); |
660 ++num; |
660 ++num; |
661 } |
661 } |
662 |
662 |
663 log (ForgeWindow::tr ("Demoted %1 conditional lines"), num); |
663 log (ForgeWindow::tr ("Demoted %1 conditional lines"), num); |