Skip to content

Commit

Permalink
fix(workbook): // fix abs path /xl/worksheets/sheet1.xml -> xl/worksh…
Browse files Browse the repository at this point in the history
…eets/sheet1.xml
  • Loading branch information
juvenile committed May 10, 2024
1 parent 291891d commit af6b932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QXlsx/source/xlsxworkbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ bool Workbook::loadFromXmlFile(QIODevice *device)
QDir::cleanPath(parts.first() + QLatin1String("/") + relationship.target);

// fix abs path /xl/worksheets/sheet1.xml -> xl/worksheets/sheet1.xml
if (relationship.target.startsWith(QString::fromUtf8("/"))) {
if (relationship.target.startsWith(u"/")) {
fullPath = relationship.target.mid(1);
}

Expand Down

0 comments on commit af6b932

Please sign in to comment.