<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">Hi, I find a bug in the master branch and fixed it. But i am in trouble when i push the patch to the gerrit. It the waring fllow:</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">The authenticity of host '[gerrit.libreoffice.org]:29418 ([89.238.68.148]:29418)' can't be established.<br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">So, i show </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">the screenshot to show the bug and</span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"> patch fllow:</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"><br></span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">screenshot:</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">http://7xjcd4.com1.z0.glb.clouddn.com/bog_lo_bug_cell_double_thin_1.png</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"><br></span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">patch:</span></div><div><span></span><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">From f7d4b14cccb20ea39a90fb68986fb5578c6fd9a2 Mon Sep 17 00:00:00 2001<br>From: aqcoder <flw.aquarius@gmail.com><br>Date: Sun, 13 Dec 2015 19:11:28 +0800<br>Subject: [PATCH] fix paint table border in DOUBLE_THIN style<br><br>it always paint partial table border which have line style of DOUBLE_THIN.<br>Becouse the partial of the border line is out of the invalid window rect.<br>so, we extend it.<br><br>Change-Id: I9d95ca71a96cfa869c68d9d2200f29c7cd447eca<br>---<br> sw/source/core/layout/paintfrm.cxx | 18 ++++++++++++++++++<br> 1 file changed, 18 insertions(+)<br><br>diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx<br>index 83a8638..9746df7 100644<br>--- a/sw/source/core/layout/paintfrm.cxx<br>+++ b/sw/source/core/layout/paintfrm.cxx<br>@@ -2742,6 +2742,24 @@ void SwTabFramePainter::PaintLines(OutputDevice& rDev, const SwRect& rRect) cons<br> aPaintEnd.Y() += static_cast<long>(offsetEnd + 0.5);<br> }<br> <br>+ if( rEntryStyle.Type() == table::BorderLineStyle::DOUBLE_THIN )<br>+ {<br>+ long aPixel = rDev.PixelToLogic( Point(1, 1) ).getX();<br>+ SwRect aPaintEx( aPaintStart, aPaintEnd );<br>+ if( bHori )<br>+ {<br>+ aPaintEx.Pos().Y() -= aPixel;<br>+ aPaintEx.SSize().Height() += aPixel * 2;<br>+ }<br>+ else<br>+ {<br>+ aPaintEx.Pos().X() -= aPixel;<br>+ aPaintEx.SSize().Width() += aPixel * 2;<br>+ }<br>+<br>+ gProp.pSGlobalShell->InvalidateWindows( aPaintEx );<br>+ }<br>+<br> if (bHori)<br> {<br> mrTabFrame.ProcessPrimitives( svx::frame::CreateBorderPrimitives(<br>-- <br>2.5.0</span></div>
</body></html>