Fix bug with text

This commit is contained in:
Alexey
2024-09-26 16:46:40 +03:00
committed by Oleg Korshul
parent ea1538bc11
commit 9c1efdeac2
2 changed files with 5 additions and 0 deletions

View File

@ -1567,6 +1567,9 @@ namespace NSDocxRenderer
if (!no_crossing(h_type, v_type))
{
prev_line->CalcFirstWordWidth();
curr_line->CalcFirstWordWidth();
for (auto& cont : prev_line->m_arConts)
cont->CalcSelected();
@ -1981,6 +1984,7 @@ namespace NSDocxRenderer
pParagraph->m_dWidth = pLine->m_dWidth + c_dERROR_OF_PARAGRAPH_BORDERS_MM;
pParagraph->m_dHeight = pLine->m_dHeight;
pParagraph->m_dRight = pLine->m_dRight;
pParagraph->m_dLineHeight = pParagraph->m_dHeight;
if (pLine->m_pDominantShape)
{

View File

@ -83,6 +83,7 @@ namespace NSDocxRenderer
m_oSelectedFont = rCont.m_oSelectedFont;
m_bPossibleSplit = rCont.m_bPossibleSplit;
m_bWriteStyleRaw = rCont.m_bWriteStyleRaw;
m_arSymWidths.clear();
m_arSymWidths.resize(rCont.m_arSymWidths.size());