src/gui_editactions.cpp

changeset 551
0efe5dbcef07
parent 542
46a33bdc0b36
child 553
2418d5955421
equal deleted inserted replaced
550:d97594e3fc54 551:0efe5dbcef07
553 { if (obj->isColored() == false) 553 { if (obj->isColored() == false)
554 continue; 554 continue;
555 555
556 int col = maincolor; 556 int col = maincolor;
557 557
558 if (obj->getType() == LDObject::Line || obj->getType() == LDObject::CndLine) 558 if (obj->getType() == LDObject::Line || obj->getType() == LDObject::CondLine)
559 col = edgecolor; 559 col = edgecolor;
560 560
561 obj->setColor (col); 561 obj->setColor (col);
562 g_win->R()->compileObject (obj); 562 g_win->R()->compileObject (obj);
563 num++; 563 num++;
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);

mercurial