m_data in the init() function will overwrite the data pointer from the constructor.
-
If no data passed. new QVector will be called twice
-
If data is passed as argument to the constructor, this data will be overwritten
-
move init function after the switch, so it looks same as in the constructor where data is passed
-
fix Testdescription
Fixes void SpreadsheetTest::testCopyPasteColumnMode01() QCOMPARE(sheet.rowCount(), 100);
Due to the overwriting, the rowcount got zero and when parsing the data, the number of rows is equal to the number of rows from the parsed data and not the one, which is set during creation of the column
Edited by Martin Marmsoler