130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
131 // ============================================================================= |
131 // ============================================================================= |
132 void SetColorHistory::undo () { |
132 void SetColorHistory::undo () { |
133 // Restore colors |
133 // Restore colors |
134 for (ulong i = 0; i < ulaIndices.size (); ++i) |
134 for (ulong i = 0; i < ulaIndices.size (); ++i) |
135 g_curfile->m_objs[ulaIndices[i]]->dColor = daColors[i]; |
135 g_curfile->m_objs[ulaIndices[i]]->color = daColors[i]; |
136 |
136 |
137 g_win->refresh (); |
137 g_win->refresh (); |
138 } |
138 } |
139 |
139 |
140 void SetColorHistory::redo () { |
140 void SetColorHistory::redo () { |
141 // Re-set post color |
141 // Re-set post color |
142 for (ulong i = 0; i < ulaIndices.size (); ++i) |
142 for (ulong i = 0; i < ulaIndices.size (); ++i) |
143 g_curfile->m_objs[ulaIndices[i]]->dColor = dNewColor; |
143 g_curfile->m_objs[ulaIndices[i]]->color = dNewColor; |
144 |
144 |
145 g_win->refresh (); |
145 g_win->refresh (); |
146 } |
146 } |
147 |
147 |
148 SetColorHistory::~SetColorHistory () {} |
148 SetColorHistory::~SetColorHistory () {} |