From 4f2c8194f485b1527fb4f4dfe23ce804937f1f9c Mon Sep 17 00:00:00 2001 From: "yogesh.bharate001" Date: Fri, 20 Mar 2015 20:37:52 +0530 Subject: tdf#80340: Table changes format in PPTX format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: - If the PPTX contains embedded table i.e copied from excel, when we open it in impress it row height increase due to this table format changes. - Table contents empty row i.e without text, then row height increase because text height is added also added for empty row. Solution: - Added check whether row contents text or not. Change-Id: I9f8a99aa407384505f0075168cf64fd51b8b4c7b Reviewed-on: https://gerrit.libreoffice.org/14925 Tested-by: Jenkins Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- svx/source/table/cell.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index 11aedb88cacf..71da0f146c39 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -727,7 +727,7 @@ sal_Int32 Cell::getMinimumHeight() pEditOutliner->SetMaxAutoPaperSize(aSize); nMinimumHeight = pEditOutliner->GetTextHeight()+1; } - else /*if ( hasText() )*/ + else if ( hasText() ) { Outliner& rOutliner=rTableObj.ImpGetDrawOutliner(); rOutliner.SetPaperSize(aSize); -- cgit