5013ac5509
The code in SdrTextObj::ImpSetTextStyleSheetListeners is obviously not working correctly. The families of the stylesheets are appended to the name of the family for further usage. An encoded string looks like "STYLE_NAME|3 " The family is then extracted by copying the first (length-6) bytes, e.g., "STYLE_NAME" in this example. Then another copy starting a position 1 is created, e.g., "TYLE_NAME". This string is cast to an Int32. Since this is not possible, 0 is returned, and the originally stored family is lost. This patch corrects this behavior, and adds a unit test. Change-Id: I60c0add6e4b670acbbc264cc77672452f282f737 Reviewed-on: https://gerrit.libreoffice.org/10818 Reviewed-by: Matúš Kukan <matus.kukan@collabora.com> Tested-by: Matúš Kukan <matus.kukan@collabora.com>
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# -*- 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_Module_Module,svx))
|
|
|
|
$(eval $(call gb_Module_add_targets,svx,\
|
|
Library_svx \
|
|
Library_svxcore \
|
|
Library_textconversiondlgs \
|
|
))
|
|
|
|
$(eval $(call gb_Module_add_l10n_targets,svx,\
|
|
AllLangResTarget_svx \
|
|
AllLangResTarget_ofa \
|
|
AllLangResTarget_gal \
|
|
UIConfig_svx \
|
|
))
|
|
|
|
$(eval $(call gb_Module_add_check_targets,svx,\
|
|
CppunitTest_svx_unit \
|
|
))
|
|
|
|
ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
|
|
$(eval $(call gb_Module_add_targets,svx,\
|
|
Executable_gengal \
|
|
$(if $(filter-out WNT,$(OS)), \
|
|
Package_gengal \
|
|
Executable_pixelctl) \
|
|
))
|
|
endif
|
|
|
|
ifneq ($(OOO_JUNIT_JAR),)
|
|
$(eval $(call gb_Module_add_subsequentcheck_targets,svx,\
|
|
JunitTest_svx_unoapi \
|
|
))
|
|
endif
|
|
|
|
#todo: noopt for EnhanceCustomShapesFunctionParser.cxx on Solaris Sparc and MacOSX
|
|
#todo: -DBOOST_SPIRIT_USE_OLD_NAMESPACE only in CustomShapes ?
|
|
#todo: -DUNICODE and -D_UNICODE on WNT for source/dialog
|
|
#todo: globlmn.hrc
|
|
#todo: component file
|
|
# vim: set noet sw=4 ts=4:
|