Fix Bug: Read names failure with white space

This commit is contained in:
Yonghye Kwon 2018-11-14 22:54:10 +09:00 committed by GitHub
parent 8f1e2f327f
commit 6ed22da05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,10 +239,8 @@ void MainWindow::load_label_list_data(QString qstrLabelListFile)
ui->label_image->m_drawObjectBoxColor.clear();
string strLabel;
QStringList verticalHeaderLabels;
int fileIndex = 0;
while(inputLabelListFile >> strLabel)
while(getline(inputLabelListFile, strLabel))
{
int nRow = ui->tableWidget_label->rowCount();
std::cout << nRow << endl;