Kaydet (Commit) 9a955209 authored tarafından aqcoder's avatar aqcoder Kaydeden (comit) jan iversen

fix paint table border in DOUBLE_THIN style

it always paint partial table border which have line style of DOUBLE_THIN.
Becouse the partial of the border line is out of the invalid window rect.
so, we extend it.

Change-Id: I9d95ca71a96cfa869c68d9d2200f29c7cd447eca
Reviewed-on: https://gerrit.libreoffice.org/20701Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarjan iversen <jani@documentfoundation.org>
üst 0204cc6a
...@@ -2742,6 +2742,24 @@ void SwTabFramePainter::PaintLines(OutputDevice& rDev, const SwRect& rRect) cons ...@@ -2742,6 +2742,24 @@ void SwTabFramePainter::PaintLines(OutputDevice& rDev, const SwRect& rRect) cons
aPaintEnd.Y() += static_cast<long>(offsetEnd + 0.5); aPaintEnd.Y() += static_cast<long>(offsetEnd + 0.5);
} }
if( rEntryStyle.Type() == table::BorderLineStyle::DOUBLE_THIN )
{
long aPixel = rDev.PixelToLogic( Point(1, 1) ).getX();
SwRect aPaintEx( aPaintStart, aPaintEnd );
if( bHori )
{
aPaintEx.Pos().Y() -= aPixel;
aPaintEx.SSize().Height() += aPixel * 2;
}
else
{
aPaintEx.Pos().X() -= aPixel;
aPaintEx.SSize().Width() += aPixel * 2;
}
gProp.pSGlobalShell->InvalidateWindows( aPaintEx );
}
if (bHori) if (bHori)
{ {
mrTabFrame.ProcessPrimitives( svx::frame::CreateBorderPrimitives( mrTabFrame.ProcessPrimitives( svx::frame::CreateBorderPrimitives(
......
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