summaryrefslogtreecommitdiff
path: root/sd/CppunitTest_sd_dialogs_test.mk
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-02-27 22:13:32 +0100
committerMichael Stahl <mstahl@redhat.com>2017-02-28 11:01:19 +0100
commite7f463cea58fc87e114008a726b4ea7489f36aa9 (patch)
tree0f230c43e351df55ee4a59425eebf0a24fda7d83 /sd/CppunitTest_sd_dialogs_test.mk
parente7729f458409f7fef2b7dab752205e3b230acb65 (diff)
tdf#77111 sw: add unit test, fix getting PageNumberOffset property
There are 2 places where the style:page-number attribute is handled, in XMLNumberWithAutoInsteadZeroPropHdl (for paragraphs) and SvXMLExportItemMapper/SvXMLImportItemMapper (for tables) Apparently for the paragraph case, 0 was never written to mean "auto", this happened only for tables (see 7edaf190e2b18fe5dd9b7dd8d8e7e24b2ff26520). The test reveals that SwXParagraph::Impl::GetSinglePropertyValue_Impl() was kinda broken by 7d9bb549d498d6beed2c4050c402d09643febdfa, which converts void values of "short" properties to short(0), wrongly assuming that the Any contains a long. (Fortunately this is then mapped to "auto" in XMLNumberWithAutoInsteadZeroPropHdl.) Change-Id: I3dc6d5533ac96955440b1589f1999d06750101af
Diffstat (limited to 'sd/CppunitTest_sd_dialogs_test.mk')
0 files changed, 0 insertions, 0 deletions