Summary: | right aligned text in table cells | ||
---|---|---|---|
Product: | kword | Reporter: | Thilo Bangert <thilo.bangert> |
Component: | tables | Assignee: | Thomas Zander <zander> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | faure |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Two tables with the bug |
Description
Thilo Bangert
2003-11-27 18:14:23 UTC
I can confirm this. The bug appears also in inlined tables. It's not only a text problem, also the colours of table templates are displayed wrong. Created attachment 3472 [details]
Two tables with the bug
Subject: koffice/kword CVS commit by faure: Fix table row resizing (prevent negative heights), patch by Sven Langkamp. He says it also fixes #69170. CCMAIL: 69170-done@bugs.kde.org M +16 -1 kwtableframeset.cc 1.260 --- koffice/kword/kwtableframeset.cc #1.259:1.260 @@ -327,4 +327,5 @@ void KWTableFrameSet::recalcCols(int _co } updateFrames(); + layout(); //kdDebug(32004) << "end KWTableFrameSet::recalcCols" << endl; } @@ -728,5 +729,19 @@ void KWTableFrameSet::resizeRow( unsigne { kdDebug() << k_funcinfo << row << "," << y << endl; + double difference = m_rowPositions[row]; + if ((row != 0) && (y - m_rowPositions[ row-1 ] < s_minFrameHeight)) + m_rowPositions[ row ] = m_rowPositions[ row-1 ] + s_minFrameHeight; + else + if ((row != getRows()) && (m_rowPositions[ row + 1 ] - y < s_minFrameHeight)) + m_rowPositions[row] = m_rowPositions[ row + 1 ] - s_minFrameHeight; + else m_rowPositions[ row ] = y; + difference = m_rowPositions[row] - difference; + + //move all rows under 'row' + if (row != 0) + for (int i=row+1; i<= getRows(); i++) + m_rowPositions[i] = m_rowPositions[i] + difference; + // move all cells under 'row' for (TableIter cell(this); cell; ++cell) { |