Skip to content

Commit

Permalink
CSS: fix "hyphens:none" should override inherited "hyphens:auto"
Browse files Browse the repository at this point in the history
  • Loading branch information
poire-z committed Nov 27, 2019
1 parent ae0399f commit b30ca9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crengine/src/lvrend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2454,6 +2454,9 @@ void renderFinalBlock( ldomNode * enode, LFormattedText * txform, RenderRectAcce
case css_hyph_auto:
flags |= LTEXT_HYPHENATE;
break;
case css_hyph_none:
flags &= ~LTEXT_HYPHENATE;
break;
default:
break;
}
Expand Down

0 comments on commit b30ca9d

Please sign in to comment.