# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This file incorporates work covered by the following license notice: # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed # with this work for additional information regarding copyright # ownership. The ASF licenses this file to you under the Apache # License, Version 2.0 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # $(eval $(call gb_Library_Library,date)) $(eval $(call gb_Library_set_componentfile,date,scaddins/source/datefunc/date)) $(eval $(call gb_Library_set_include,date,\ $$(INCLUDE) \ -I$(SRCDIR)/scaddins/inc \ )) $(eval $(call gb_Library_use_external,date,boost_headers)) $(eval $(call gb_Library_use_common_precompiled_header,date)) $(eval $(call gb_Library_use_internal_comprehensive_api,date,\ offapi \ scaddins \ udkapi \ )) $(eval $(call gb_Library_use_libraries,date,\ cppu \ cppuhelper \ sal \ utl \ i18nlangtag \ )) $(eval $(call gb_Library_add_exception_objects,date,\ scaddins/source/datefunc/datefunc \ )) # vim: set noet sw=4 ts=4: fice-5-3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/oox/qa/unit/data/dml-groupshape-polygon.docx
AgeCommit message (Collapse)Author
2021-04-20tdf#122962 DOCX drawingML export: fix polygon shape in group shapeMiklos Vajna
Regression from commit cfb5b20cdc230320ff9f864d1cfd81aaea221da0 (DocxAttributeOutput::OutputFlyFrame_Impl: enable DML export by default, 2013-12-18), there were two problems here. First, <a:chOff> and <a:chExt> was not written for docx group shapes. This can be done for toplevel shapes just by writing what would be the shape position and size (but for docx, we don't write the size). Second, (poly)polygon shapes used the bounding rectangle of their points as size, which doesn't necessarily match the shape size. Given that the group shape is meant to simply contain its children in LibreOffice (and not have an own size), switch to using the UNO API for polygon shapes as well, that way the two sizes will always match. Change-Id: I4406ddefe5f6105aa2fc74d805359add452936bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114305 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>