[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Peter Kümmel
syntheticpp at gmx.net
Tue Aug 31 14:48:16 CEST 2010
SVN commit 1170281 by kuemmel:
Don't break offset calculation
CCBUG: 249544
M +3 -1 asciisource.cpp
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciisource.cpp #1170280:1170281
@@ -171,7 +171,9 @@
//-------------------------------------------------------------------------------------------
bool AsciiSource::openFile(QFile &file)
{
- return file.open(QIODevice::ReadOnly | QIODevice::Text);
+ // Don't use 'QIODevice::Text'!
+ // Because CR LF line ending breaks row offset calculation
+ return file.open(QIODevice::ReadOnly);
}
More information about the Kst
mailing list