fixes 0003638: Importing CSV-files produces an empty spreadsheet without the data
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user