From e3aec4e38f6bb5d2e0342bfa30e004f95d9064de Mon Sep 17 00:00:00 2001 From: Oleksii Gaienko Date: Thu, 15 Jun 2023 20:05:23 +0300 Subject: [PATCH] Fix error: invalid conversion from 'int' to 'const char*' ref: https://github.com/dbzhang800/QtOfficeOpenXml/issues/4 --- src/officeopenxml/sml/smlworkbook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/officeopenxml/sml/smlworkbook.cpp b/src/officeopenxml/sml/smlworkbook.cpp index dfa8e13..dccc415 100644 --- a/src/officeopenxml/sml/smlworkbook.cpp +++ b/src/officeopenxml/sml/smlworkbook.cpp @@ -37,7 +37,7 @@ QString Workbook::bookView(const QString &attribute) const return QString(); if (!bookViews_raw[0].contains(attribute)) return QString(); - return bookViews_raw[0][attribute].toInt(); + return QString::fromStdString(bookViews_raw[0][attribute].toStdString()); } void Workbook::setBookView(const QString &attribute, const QString &val)