mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
don't attempt to garbage collect cells without formulae, closes #121
This commit is contained in:
parent
4ed8dae49c
commit
9535f94e38
|
@ -490,8 +490,11 @@ std::string cell::formula() const
|
||||||
|
|
||||||
void cell::clear_formula()
|
void cell::clear_formula()
|
||||||
{
|
{
|
||||||
|
if (has_formula())
|
||||||
|
{
|
||||||
d_->formula_.clear();
|
d_->formula_.clear();
|
||||||
worksheet().garbage_collect_formulae();
|
worksheet().garbage_collect_formulae();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cell::error(const std::string &error)
|
void cell::error(const std::string &error)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user