From c50ae6a282ed83762bf634fed5c91033eb305c88 Mon Sep 17 00:00:00 2001 From: Gülşah Köse Date: Thu, 23 Jul 2020 13:45:51 +0300 Subject: tdf#133015 Fix duplicated row and column problem. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LibreOffice imports multicolumn texboxes as tables. When document has numCols=2 (or more) attribute at slidelayout and slide, the table rows and columns duplicates. maPPTShapes vector holds our PPTShape objects, hasSameSubTypeIndex function finds the status that I mention above. So that we can prevent that duplication. Change-Id: Iee03d130452a16e9b46d471a9b6ed5910e6351ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99279 Tested-by: Jenkins Reviewed-by: Gülşah Köse --- oox/source/ppt/pptimport.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'oox/source/ppt/pptimport.cxx') diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx index dea04a98e9a3..f7d00920705e 100644 --- a/oox/source/ppt/pptimport.cxx +++ b/oox/source/ppt/pptimport.cxx @@ -70,6 +70,7 @@ PowerPointImport::PowerPointImport( const Reference< XComponentContext >& rxCont PowerPointImport::~PowerPointImport() { + maPPTShapes.clear(); } /// Visits the relations from pRelations which are of type rType. -- cgit