Fixed space calculation for Extra Paragraph Spacing OFF (indent 1st line)

This commit is contained in:
Jonas Diemer 2025-12-18 19:43:39 +01:00
parent b2020f5512
commit 9a0f78acb5

View File

@ -53,7 +53,7 @@ void ParsedText::layoutAndExtractLines(const GfxRenderer& renderer, const int fo
ans[totalWordCount - 1] = totalWordCount - 1;
for (int i = totalWordCount - 2; i >= 0; --i) {
int currlen = -spaceWidth + indentWidth;
int currlen = -spaceWidth + (i==0) ? indentWidth : 0;
dp[i] = MAX_COST;
for (size_t j = i; j < totalWordCount; ++j) {