Browse Source

Issue #77 : Fix one number format related bug. Thanks antipro

master
Debao Zhang 10 years ago
parent
commit
5f42d8e6eb
  1. 3
      src/xlsx/xlsxstyles.cpp

3
src/xlsx/xlsxstyles.cpp

@ -168,11 +168,12 @@ void Styles::fixNumFmt(const Format &format)
bool find=false; bool find=false;
while (it.hasNext()) { while (it.hasNext()) {
it.next(); it.next();
if (it.value() == id) if (it.value() == id) {
const_cast<Format *>(&format)->fixNumberFormat(id, it.key()); const_cast<Format *>(&format)->fixNumberFormat(id, it.key());
find = true; find = true;
break; break;
} }
}
if (!find) { if (!find) {
//Wrong numFmt //Wrong numFmt

Loading…
Cancel
Save