Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Staging:adi:2
deepin-reader
fix-docx-format.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-docx-format.patch of Package deepin-reader
diff -Nur deepin-reader-5.10.23/reader/document/Model.cpp deepin-reader-5.10.23-new/reader/document/Model.cpp --- deepin-reader-5.10.23/reader/document/Model.cpp 2022-08-02 13:40:01.000000000 +0800 +++ deepin-reader-5.10.23-new/reader/document/Model.cpp 2023-12-24 21:23:03.619056072 +0800 @@ -9,6 +9,7 @@ #include <QFile> #include <QDir> #include <QTimer> +#include <QTemporaryFile> namespace deepin_reader { deepin_reader::Document *deepin_reader::DocumentFactory::getDocument(const int &fileType, @@ -70,7 +71,10 @@ return nullptr; } qInfo() << "(" << targetDoc << ")文档解压 已完成"; - + QTemporaryFile tmpFile(convertedFileDir + "/word/" + QCoreApplication::applicationName() + "_XXXXXX.html"); + if( tmpFile.open()) { //fix 232871 + tmpHtmlFilePath = tmpFile.fileName(); // returns the unique file name + } // docx -> html QProcess converter; *pprocess = &converter;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor