mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Fix test case - page size now optional.
This commit is contained in:
parent
1be73c40f8
commit
b81d76a223
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -19,6 +19,7 @@ python/xlntpyarrow.egg-info/
|
|||
/x64/
|
||||
.envrc
|
||||
.vscode
|
||||
/dist/
|
||||
/.vs/
|
||||
/out/
|
||||
/CMakeSettings.json
|
||||
|
|
|
@ -29,11 +29,9 @@ namespace xlnt {
|
|||
page_setup::page_setup()
|
||||
: break_(xlnt::page_break::none),
|
||||
sheet_state_(xlnt::sheet_state::visible),
|
||||
paper_size_(xlnt::paper_size::letter),
|
||||
fit_to_page_(false),
|
||||
fit_to_height_(false),
|
||||
fit_to_width_(false),
|
||||
scale_(1)
|
||||
fit_to_width_(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
{
|
||||
xlnt::page_setup ps;
|
||||
|
||||
xlnt_assert_equals(ps.paper_size(), xlnt::paper_size::letter);
|
||||
xlnt_assert(!ps.has_paper_size());
|
||||
ps.paper_size(xlnt::paper_size::executive);
|
||||
xlnt_assert_equals(ps.paper_size(), xlnt::paper_size::executive);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user