src/history.cpp

changeset 188
4e686b771996
parent 185
6fea53f1ffc2
child 190
82f784cf2ce5
equal deleted inserted replaced
187:ee42f4442566 188:4e686b771996
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 () {}

mercurial