mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Better idea, set the defaults
This commit is contained in:
parent
d39b7a107a
commit
e1daff535c
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user