debug gcc exception

This commit is contained in:
Thomas Fussell 2016-11-27 17:37:12 +01:00
parent cdc6c2d4cf
commit b5693d49e6

View File

@ -168,7 +168,7 @@ public:
comment_text.clear(); comment_text.clear();
comment_text.add_run(formatted_run); comment_text.add_run(formatted_run);
sheet1.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User")); sheet1.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User"));
/*
auto sheet2 = wb.create_sheet(); auto sheet2 = wb.create_sheet();
sheet2.get_cell("A1").set_value("Sheet2!A1"); sheet2.get_cell("A1").set_value("Sheet2!A1");
formatted_run.set_string("Sheet2 comment"); formatted_run.set_string("Sheet2 comment");
@ -181,10 +181,10 @@ public:
comment_text.clear(); comment_text.clear();
comment_text.add_run(formatted_run); comment_text.add_run(formatted_run);
sheet2.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User")); sheet2.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User"));
*/
wb.save("debug.xlsx"); wb.save("debug.xlsx");
wb.load("debug.xlsx"); // wb.load("debug.xlsx");
TS_ASSERT(workbook_matches_file(wb, xlnt::path("data/18_basic_comments.xlsx"))); // TS_ASSERT(workbook_matches_file(wb, xlnt::path("data/18_basic_comments.xlsx")));
} }
}; };