Fix bug with the name of file

This commit is contained in:
Nikos Karamolegkos 2017-08-03 12:39:38 +03:00
parent 2caedc53a7
commit 813d6b9f74
1 changed files with 2 additions and 2 deletions

View File

@ -86,12 +86,12 @@ namespace gr
filename.append (buffer);
if (!filename.compare(d_filename_prev))
if (filename.compare(d_filename_prev)==0)
{
d_filename_prev.assign(filename);
filename.append ("_");
d_counter++;
filename.append(std::to_string(d_counter));
d_filename_prev.assign(filename);
}
else
{