Skip to content

Commit

Permalink
fix bug #66777
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaSubbotina committed Mar 7, 2024
1 parent 57e0622 commit e30c5fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OdfFile/Reader/Converter/xlsx_conditionalFormatting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@ void xlsx_conditionalFormatting_context::set_formula(std::wstring f)
}
else if (0 <= (pos = f.find(L"contains-text")))
{
impl_->conditionalFormattings_.back().rules.back().formula_type = L"containsText";
if (std::wstring::npos != f.find(L"not-contains-text"))
impl_->conditionalFormattings_.back().rules.back().formula_type = L"notContainsText";
else impl_->conditionalFormattings_.back().rules.back().formula_type = L"containsText";

std::wstring text = f.substr(pos + 14, f.length() - pos - 15);

Expand Down

0 comments on commit e30c5fb

Please sign in to comment.