summaryrefslogtreecommitdiff
path: root/svx/Module_svx.mk
diff options
context:
space:
mode:
authorTobias Lippert <drtl@fastmail.fm>2014-08-07 22:30:58 +0200
committerMatúš Kukan <matus.kukan@collabora.com>2014-09-19 21:53:55 +0000
commit5013ac55090ab7a64b9549df67196aa5c7479542 (patch)
treeb8305cc98935855ae69413b6afd1f1805591df41 /svx/Module_svx.mk
parent234b5de79fd10bd99b75d7b968581af7b6ffe44b (diff)
fdo#84061 Fix setting text style sheet listeners in SdrTextObj
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>
Diffstat (limited to 'svx/Module_svx.mk')
-rw-r--r--svx/Module_svx.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/Module_svx.mk b/svx/Module_svx.mk
index 492f6f70b9f4..67dbe017d442 100644
--- a/svx/Module_svx.mk
+++ b/svx/Module_svx.mk
@@ -32,6 +32,10 @@ $(eval $(call gb_Module_add_l10n_targets,svx,\
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 \