dbzhang800 / QtXlsxWriter

.xlsx file reader and writer for Qt5
http://qtxlsx.debao.me
Other
1.24k stars 632 forks source link

Master branch, reading problem #12

Closed Xezijexu closed 10 years ago

Xezijexu commented 10 years ago

Hello! I have some questions about master branch.

int main(int argc, char *argv[])
{
    QXlsx::Document xlsx("Test.xlsx"); // Looped here
    xlsx.write("A1", "TEST");
    xlsx.save();
    return 0;
}

This simple program looped when reading document, at function: QXlsx::Styles::readFont(QXmlStreamReader&, QXlsx::Format&) xlsxstyles.cpp 767

I used this stuff for compile: Qt 5.1.1 clang x64 Mac OSX

When I checkout to tag v0.2, sample began to work. Please fix this problem in master branch or edit building instruction. (add command after clone: git checkout v0.2 )

Sorry for my bad English.

dbzhang800 commented 10 years ago

Hi, I cann't reproduce this problem under my Windows system, so I am not sure how to fix it. However, I push a new commit to the master branch for this https://github.com/dbzhang800/QtXlsxWriter/commit/11e8d7c48abbe546f591a8b141f711d5cecfeffd

Hope it can solve your problem.

Xezijexu commented 10 years ago

Hi! Thank you for quick solution. Now reading works fine! :)