src/ldtypes.cpp

changeset 275
7b5afec27688
parent 274
d232fe4d88a6
child 276
a21e49914264
equal deleted inserted replaced
274:d232fe4d88a6 275:7b5afec27688
801 repl->setColor (color ()); 801 repl->setColor (color ());
802 802
803 replace (repl); 803 replace (repl);
804 return repl; 804 return repl;
805 } 805 }
806
807 READ_ACCESSOR (short, LDObject::color) { return m_color; }
808 SET_ACCESSOR (short, LDObject::setColor) {
809 long idx;
810 if ((idx = getIndex (g_curfile)) != -1) {
811 str before = raw ();
812 m_color = val;
813 str after = raw ();
814
815 g_curfile->addToHistory (new EditHistory (idx, before, after));
816 } else
817 m_color = val;
818 }

mercurial