Fixed bug where cloning a clock line could cross hour boundary.

This commit is contained in:
Patrick Linstruth 2019-01-12 13:26:48 -08:00
parent 34ad7dac5c
commit 2e108ec3a1
2 changed files with 6 additions and 0 deletions

View File

@ -18369,3 +18369,6 @@
notifications.
2019-01-11 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 3.0.0alpha05.
2019-01-13 Patrick Linstruth <patrick@deltecent.com>
* Fixed a bug in RDLogManager that allowed cloned clock lines to pass
hour mark.

View File

@ -350,6 +350,9 @@ void EditClock::cloneData()
eventline.setName(selectedEventLine->name());
eventline.setStartTime(selectedEventLine->startTime().addMSecs(selectedEventLine->length()));
eventline.setLength(selectedEventLine->length());
if(eventline.startTime().addMSecs(eventline.length()).hour()) {
eventline.setLength(0);
}
EditEventLine *edit_eventline=
new EditEventLine(&eventline,edit_clock,-1,this);