implement MarkerDrag::abort()

This commit is contained in:
Paul Davis 2015-02-05 18:00:32 -05:00
parent 78e245d0b5
commit e6752fb729

View File

@ -3540,9 +3540,20 @@ MarkerDrag::finished (GdkEvent* event, bool movement_occurred)
}
void
MarkerDrag::aborted (bool)
MarkerDrag::aborted (bool movement_occured)
{
/* XXX: TODO */
if (!movement_occured) {
return;
}
for (CopiedLocationInfo::iterator x = _copied_locations.begin(); x != _copied_locations.end(); ++x) {
/* move all markers to their original location */
for (vector<Marker*>::iterator m = x->markers.begin(); m != x->markers.end(); ++m) {
(*m)->set_position ((*m)->location()->start(), (*m)->location()->end());
}
}
}
void