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 } |