fixes 0003638: Importing CSV-files produces an empty spreadsheet without the data

This commit is contained in:
wmayer
2018-10-18 23:32:32 +02:00
parent 3a6afac8b2
commit 7b86681678

View File

@@ -143,15 +143,13 @@ void Sheet::clearAll()
bool Sheet::importFromFile(const std::string &filename, char delimiter, char quoteChar, char escapeChar)
{
Base::FileInfo fi(filename);
Base::ifstream file(fi);
Base::ifstream file(fi, std::ios::in);
int row = 0;
PropertySheet::AtomicPropertyChange signaller(cells);
clearAll();
file.open(filename.c_str(), std::ios::in);
if (file.is_open()) {
std::string line;