[Libreoffice-bugs] [Bug 118716] Inner border of an embedded table can't be dragged around

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 18 18:56:20 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118716

--- Comment #7 from Xisco FaulĂ­ <xiscofauli at libreoffice.org> ---
Hi Noel,
This reversion fixes the issue:

--- a/sw/source/uibase/uiview/viewtab.cxx
+++ b/sw/source/uibase/uiview/viewtab.cxx
@@ -1699,9 +1699,8 @@ void SwView::StateTabWin(SfxItemSet& rSet)
                 const int nLft = aTabCols.GetLeftMin() + aTabCols.GetLeft();
                 const int nRgt = (bTableVertical ? nPageHeight : nPageWidth) -
                                  (aTabCols.GetLeftMin() +
aTabCols.GetRight());
-
-                const sal_uInt16 nL = std::max< sal_uInt16 >(nLft, 0);
-                const sal_uInt16 nR = std::max< sal_uInt16 >(nRgt, 0);
+                const sal_uInt16 nL = static_cast< sal_uInt16 >(nLft > 0 ?
nLft : 0);
+                const sal_uInt16 nR = static_cast< sal_uInt16 >(nRgt > 0 ?
nRgt : 0);

                 SvxColumnItem aColItem(nNum, nL, nR);

However, your change seems correct...

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180718/0f6de7ea/attachment.html>


More information about the Libreoffice-bugs mailing list