Fixed issues with stacking styles and duplicate/empty styles

This commit is contained in:
Yousef Khadadeh 2025-11-05 08:51:52 +03:00
parent ee887c82dd
commit fe936b6c25
3 changed files with 68 additions and 28 deletions

View file

@ -131,6 +131,8 @@ class RichTextBox {
void erase_if_over_all_styles_until_pos(TextPosition pos, const std::function<bool(TextPosition, const std::shared_ptr<TextStyleModifier>&)>& func);
void insert_style_at_pos(TextPosition pos, const std::shared_ptr<TextStyleModifier>& modifier);
void remove_duplicate_text_style_mods();
void rebuild();
bool newlinesAllowed = true;