Merge pull request #32 from NorwegianRockCat/newlines-every-line

Add a newline on every line.
This commit is contained in:
Yonghye Kwon 2020-08-07 17:33:47 +09:00 committed by GitHub
commit 054dd00f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,8 +137,6 @@ void MainWindow::save_label_data()const
{ {
for(int i = 0; i < ui->label_image->m_objBoundingBoxes.size(); i++) for(int i = 0; i < ui->label_image->m_objBoundingBoxes.size(); i++)
{ {
if(i != 0) fileOutputLabelData << '\n';
ObjectLabelingBox objBox = ui->label_image->m_objBoundingBoxes[i]; ObjectLabelingBox objBox = ui->label_image->m_objBoundingBoxes[i];
if(ui->checkBox_cropping->isChecked()) if(ui->checkBox_cropping->isChecked())
@ -169,7 +167,7 @@ void MainWindow::save_label_data()const
fileOutputLabelData << " "; fileOutputLabelData << " ";
fileOutputLabelData << std::fixed << std::setprecision(6) << width; fileOutputLabelData << std::fixed << std::setprecision(6) << width;
fileOutputLabelData << " "; fileOutputLabelData << " ";
fileOutputLabelData << std::fixed << std::setprecision(6) << height; fileOutputLabelData << std::fixed << std::setprecision(6) << height << std::endl;
} }
fileOutputLabelData.close(); fileOutputLabelData.close();