Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 60afc406 authored by Brijesh Patel's avatar Brijesh Patel

save the datatype to float instead of string whenever it is possible to cast...

save the datatype to float instead of string whenever it is possible to cast it to double while saving rows in chart
parent d62c70b6
......@@ -1189,6 +1189,12 @@ static void saveOdfDataRow( KoXmlWriter &bodyWriter, QAbstractItemModel *table,
QModelIndex index = table->index( row, col );
QVariant value = table->data( index );
bool ok;
double val = value.toDouble(&ok);
if (ok) {
value = val;
}
QString valType;
QString valStr;
......
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