diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-07-27 21:03:26 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-07-27 21:52:53 +0200 |
commit | 383f39493c0ca3e11c296fa37e7d9cf679065f74 (patch) | |
tree | 3d7fd82cfa29b64b44b3e3dc0d74e07bb1bf6473 /sw/CppunitTest_sw_uibase_frmdlg.mk | |
parent | d12f2e9025250a7e310078ff736f8c6756cf894d (diff) |
tdf#134610 sw: fix incorrect position of math object from DOCX
Regression from commit a2f85c062aafb3fd9dfb1c6c6e87e1e73e7545a3
(tdf#130362 sw: fix anchoring of inline math objects, 2020-02-04), the
problem was that the SwFlyFrameAttrMgr ctor wanted to set the anchor
type to at-char, and then later
DocumentContentOperationsManager::InsertEmbObject() wanted to undo that
for math objects, but this did not play nicely with objects imported
from DOCX.
So don't set and clear the anchor type, rather set it conditionally in
the first place. This allows setting the anchor type in writerfilter/
before insertion, and then all of 1) docx import (depends) 2) insert of
Math objects (as-char) 3) insert of images (at-char) are working.
Change-Id: I94d82c12f30d069426db1bab70c456cadf1c91ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99559
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/CppunitTest_sw_uibase_frmdlg.mk')
-rw-r--r-- | sw/CppunitTest_sw_uibase_frmdlg.mk | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/sw/CppunitTest_sw_uibase_frmdlg.mk b/sw/CppunitTest_sw_uibase_frmdlg.mk new file mode 100644 index 000000000000..5c2b8b7283b7 --- /dev/null +++ b/sw/CppunitTest_sw_uibase_frmdlg.mk @@ -0,0 +1,73 @@ +# -*- 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/. +# +#************************************************************************* + +$(eval $(call gb_CppunitTest_CppunitTest,sw_uibase_frmdlg)) + +$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_uibase_frmdlg)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sw_uibase_frmdlg, \ + sw/qa/uibase/frmdlg/frmdlg \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sw_uibase_frmdlg, \ + comphelper \ + cppu \ + cppuhelper \ + editeng \ + sal \ + sfx \ + svl \ + svx \ + svxcore \ + sw \ + test \ + unotest \ + utl \ + vcl \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sw_uibase_frmdlg,\ + boost_headers \ + libxml2 \ +)) + +$(eval $(call gb_CppunitTest_set_include,sw_uibase_frmdlg,\ + -I$(SRCDIR)/sw/inc \ + -I$(SRCDIR)/sw/source/core/inc \ + -I$(SRCDIR)/sw/source/uibase/inc \ + -I$(SRCDIR)/sw/qa/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sw_uibase_frmdlg,\ + udkapi \ + offapi \ + oovbaapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sw_uibase_frmdlg)) +$(eval $(call gb_CppunitTest_use_vcl,sw_uibase_frmdlg)) + +$(eval $(call gb_CppunitTest_use_rdb,sw_uibase_frmdlg,services)) + +$(eval $(call gb_CppunitTest_use_custom_headers,sw_uibase_frmdlg,\ + officecfg/registry \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sw_uibase_frmdlg)) + +$(eval $(call gb_CppunitTest_use_uiconfigs,sw_uibase_frmdlg, \ + modules/swriter \ +)) + +$(eval $(call gb_CppunitTest_use_more_fonts,sw_uibase_frmdlg)) + +# vim: set noet sw=4 ts=4: |