Better idea, set the defaults

This commit is contained in:
Crzyrndm 2018-07-28 14:04:22 +12:00
parent d39b7a107a
commit e1daff535c
2 changed files with 4 additions and 8 deletions

View File

@ -155,12 +155,12 @@ private:
/// <summary>
/// Width of the comment box.
/// </summary>
int width_ = 0;
int width_ = 200;
/// <summary>
/// Height of the comment box.
/// </summary>
int height_ = 0;
int height_ = 100;
};
} // namespace xlnt

View File

@ -964,16 +964,12 @@ class comment cell::comment()
void cell::comment(const std::string &text, const std::string &author)
{
xlnt::comment tmp_comment(text, author);
tmp_comment.size(200, 100);
comment(tmp_comment);
comment(xlnt::comment(text, author));
}
void cell::comment(const std::string &text, const class font &comment_font, const std::string &author)
{
xlnt::comment tmp_comment(xlnt::rich_text(text, comment_font), author);
tmp_comment.size(200, 100);
comment(tmp_comment);
comment(xlnt::comment(xlnt::rich_text(text, comment_font), author));
}
void cell::comment(const class comment &new_comment)