Fix Bug: Read names failure with white space
This commit is contained in:
parent
8f1e2f327f
commit
6ed22da05b
@ -239,10 +239,8 @@ void MainWindow::load_label_list_data(QString qstrLabelListFile)
|
|||||||
ui->label_image->m_drawObjectBoxColor.clear();
|
ui->label_image->m_drawObjectBoxColor.clear();
|
||||||
|
|
||||||
string strLabel;
|
string strLabel;
|
||||||
QStringList verticalHeaderLabels;
|
|
||||||
|
|
||||||
int fileIndex = 0;
|
int fileIndex = 0;
|
||||||
while(inputLabelListFile >> strLabel)
|
while(getline(inputLabelListFile, strLabel))
|
||||||
{
|
{
|
||||||
int nRow = ui->tableWidget_label->rowCount();
|
int nRow = ui->tableWidget_label->rowCount();
|
||||||
std::cout << nRow << endl;
|
std::cout << nRow << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user