2023-07-12 Fred Gleason <fredg@paravelsystems.com>

* Fixed a fencepost bug in the 'Render Log' dialog in rdlogedit(1)
	that caused rendered log to include the cart immediately after the
	end of the selected section when setting the 'Include' dropdown to
	'Only Selected Events'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-07-12 13:08:54 -04:00
parent 2f0b8fd7b6
commit 0903b8f586
3 changed files with 10 additions and 2 deletions

View File

@@ -1028,7 +1028,7 @@ void EditLog::renderasData()
}
else {
edit_render_dialog->exec(rda->user(),edit_log_model,rows.first().row(),
1+rows.last().row());
rows.last().row());
}
}

View File

@@ -2,7 +2,7 @@
//
// Render Log Dialog for Rivendell.
//
// (C) Copyright 2017-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2017-2023 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -295,16 +295,19 @@ void RenderDialog::renderData()
QMessageBox::warning(this,"RDLogEdit - "+tr("Rendering Error"),
err_msg);
delete r;
render_progress_dialog->reset();
return;
}
delete r;
render_progress_dialog->reset();
done(true);
}
void RenderDialog::cancelData()
{
render_progress_dialog->reset();
done(false);
}