Commit 103d81e8 authored by Stefan Gerlach's avatar Stefan Gerlach

Fix typo

parent 6ec3fe8f
...@@ -1916,7 +1916,7 @@ void SpreadsheetView::fillSelectedCellsWithRandomNumbers() { ...@@ -1916,7 +1916,7 @@ void SpreadsheetView::fillSelectedCellsWithRandomNumbers() {
for (int row = first; row <= last; row++) for (int row = first; row <= last; row++)
if (isCellSelected(row, col)) if (isCellSelected(row, col))
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
results << QDateTime( earliestDate.addDays((QRandomGenerator::global()->generateDouble())*((double)earliestDate.daysTo(latestDate)), midnight.addMSecs((QRandomGenerator::global()->generateDouble())*1000*60*60*24)); results << QDateTime( earliestDate.addDays((QRandomGenerator::global()->generateDouble())*((double)earliestDate.daysTo(latestDate))), midnight.addMSecs((QRandomGenerator::global()->generateDouble())*1000*60*60*24));
#else #else
results << QDateTime( earliestDate.addDays(((double)qrand())*((double)earliestDate.daysTo(latestDate))/((double)RAND_MAX)), midnight.addMSecs(((qint64)qrand())*1000*60*60*24/RAND_MAX)); results << QDateTime( earliestDate.addDays(((double)qrand())*((double)earliestDate.daysTo(latestDate))/((double)RAND_MAX)), midnight.addMSecs(((qint64)qrand())*1000*60*60*24/RAND_MAX));
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment