svx/source/table/tablelayouter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 51e4f716ea8416a1a8d90f8063a51ad130bd1743
Author:     Gülşah Köse <gulsah.k...@collabora.com>
AuthorDate: Wed Feb 10 08:49:28 2021 +0300
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Feb 16 14:12:21 2021 +0100

    tdf#139511 Correct calculation of minimum row height during resize.
    
    Change-Id: Id47b5877d56850c80395897a83daae8e24f5c099
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110662
    Tested-by: Jenkins
    Reviewed-by: Gülşah Köse <gulsah.k...@collabora.com>
    Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110924

diff --git a/svx/source/table/tablelayouter.cxx 
b/svx/source/table/tablelayouter.cxx
index 2d0fc0f22a3f..ed54499295a4 100644
--- a/svx/source/table/tablelayouter.cxx
+++ b/svx/source/table/tablelayouter.cxx
@@ -788,7 +788,7 @@ void TableLayouter::LayoutTableHeight( tools::Rectangle& 
rArea, bool bFit )
                     //     Case 2: * Row has "Heigth" property
                     //             * Calculated minimum heigth is bigger than 
Height propery value and
                     //             * Row has not any text of any cell in edit 
mode in the row (means completely empty)
-                    if ((nMinHeight < nRowPropHeight && nRowPropHeight > 0 ) ||
+                    if ((nMinHeight < nRowPropHeight && nRowPropHeight > 0 && 
(bRowHasText || bRowHasCellInEditMode)) ||
                         (nMinHeight > nRowPropHeight && nRowPropHeight > 0 && 
(!bRowHasText && !bRowHasCellInEditMode)))
                     {
                         nMinHeight = nRowPropHeight;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to