Kaydet (Commit) 9d3366c4 authored tarafından Mike Kaganski's avatar Mike Kaganski

Fix a typo

Cf. comment for #i2109 in commit 90b73c7b

Change-Id: I74a606d0c5c6e1071e914b4565d825920c71d158
Reviewed-on: https://gerrit.libreoffice.org/31626Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
Tested-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst f2a75fec
...@@ -517,7 +517,7 @@ static void lcl_PreprocessRowsInCells( SwTabFrame& rTab, SwRowFrame& rLastLine, ...@@ -517,7 +517,7 @@ static void lcl_PreprocessRowsInCells( SwTabFrame& rTab, SwRowFrame& rLastLine,
// Check if we can move pTmpLastLineRow to the follow table, // Check if we can move pTmpLastLineRow to the follow table,
// or if we have to split the line: // or if we have to split the line:
SwFrame* pCell = pTmpLastLineRow->Lower(); SwFrame* pCell = pTmpLastLineRow->Lower();
bool bTableLayoutToComplex = false; bool bTableLayoutTooComplex = false;
long nMinHeight = 0; long nMinHeight = 0;
// We have to take into account: // We have to take into account:
...@@ -533,7 +533,7 @@ static void lcl_PreprocessRowsInCells( SwTabFrame& rTab, SwRowFrame& rLastLine, ...@@ -533,7 +533,7 @@ static void lcl_PreprocessRowsInCells( SwTabFrame& rTab, SwRowFrame& rLastLine,
if ( static_cast<SwCellFrame*>(pCell)->Lower() && if ( static_cast<SwCellFrame*>(pCell)->Lower() &&
static_cast<SwCellFrame*>(pCell)->Lower()->IsRowFrame() ) static_cast<SwCellFrame*>(pCell)->Lower()->IsRowFrame() )
{ {
bTableLayoutToComplex = true; bTableLayoutTooComplex = true;
break; break;
} }
...@@ -555,10 +555,10 @@ static void lcl_PreprocessRowsInCells( SwTabFrame& rTab, SwRowFrame& rLastLine, ...@@ -555,10 +555,10 @@ static void lcl_PreprocessRowsInCells( SwTabFrame& rTab, SwRowFrame& rLastLine,
// 2. Case: // 2. Case:
// The line has to be split, the minimum height still fits into // The line has to be split, the minimum height still fits into
// the master table, and the table structure is not to complex. // the master table, and the table structure is not too complex.
if ( nTmpCut > nCurrentHeight || if ( nTmpCut > nCurrentHeight ||
( pTmpLastLineRow->IsRowSplitAllowed() && ( pTmpLastLineRow->IsRowSplitAllowed() &&
!bTableLayoutToComplex && nMinHeight < nTmpCut ) ) !bTableLayoutTooComplex && nMinHeight < nTmpCut ) )
{ {
// The line has to be split: // The line has to be split:
SwRowFrame* pNewRow = new SwRowFrame( *pTmpLastLineRow->GetTabLine(), &rTab, false ); SwRowFrame* pNewRow = new SwRowFrame( *pTmpLastLineRow->GetTabLine(), &rTab, false );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment