Skip to content

Commit

Permalink
Merge pull request #3575 from SamBent/FixedPageOverlap
Browse files Browse the repository at this point in the history
FixedPage SOM bugs
  • Loading branch information
SamBent authored Oct 7, 2020
2 parents f84d22a + bf4c466 commit ab605d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,15 @@ private bool _IsCombinable(FixedSOMFixedBlock fixedBlock, FixedSOMTextRun textRu
//These two overlap vertically. Let's check whether there is a vertical separator in between
double left = (fixedBlockRect.Right < textRunRect.Right) ? fixedBlockRect.Right: textRunRect.Right;
double right =(fixedBlockRect.Left > textRunRect.Left) ? fixedBlockRect.Left: textRunRect.Left;
if (left > right)
if (left < right)
{
double temp = left;
left = right;
right = temp;
return (!_lines.IsVerticallySeparated(left, textRunRect.Top, right, textRunRect.Bottom));
}
else
{
// they also overlap horizontally, so they should be combined
return true;
}
return (!_lines.IsVerticallySeparated(left, textRunRect.Top, right, textRunRect.Bottom));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ Matrix transform
newPathPrefix, // otherwise use this path prefix
constructLines,
fixedNodes,
transform * localTransform.Value
localTransform.Value * transform
);
}//endofElementIsCanvas
}
Expand Down

0 comments on commit ab605d1

Please sign in to comment.