summaryrefslogtreecommitdiff
path: root/sw/source/core/doc
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2022-02-24 10:11:18 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2022-02-25 11:44:07 +0100
commita25c88daab20f1b7fc82b54171f260c4f20b9ba0 (patch)
tree2a7da4296641038808e89451adb20484245c547b /sw/source/core/doc
parente85d2140ae5e9a611754c29aa4e5cdb6ad7fcab0 (diff)
Resolves tdf#142423 - Use absolute values for Writer styles
Avoid rounding trouble when converting to DOCX Change-Id: Ie30f66671654b64b0b2596b14dc89d6f9befa8d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130475 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> (cherry picked from commit 3c94c670fa3c3a4e00e88de7463c5e35f32b866e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130455 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r--sw/source/core/doc/DocumentStylePoolManager.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/core/doc/DocumentStylePoolManager.cxx b/sw/source/core/doc/DocumentStylePoolManager.cxx
index f5d2aa7918df..42e05e0a9aad 100644
--- a/sw/source/core/doc/DocumentStylePoolManager.cxx
+++ b/sw/source/core/doc/DocumentStylePoolManager.cxx
@@ -88,8 +88,10 @@ namespace
const sal_uInt16 PT_3 = 3 * 20; // 3 pt
const sal_uInt16 PT_6 = 6 * 20; // 6 pt
const sal_uInt16 PT_7 = 7 * 20; // 7 pt
+ const sal_uInt16 PT_9 = 9 * 20; // 9 pt
const sal_uInt16 PT_10 = 10 * 20; // 10 pt
const sal_uInt16 PT_12 = 12 * 20; // 12 pt
+ const sal_uInt16 PT_13 = 13 * 20; // 13 pt
const sal_uInt16 PT_14 = 14 * 20; // 14 pt
const sal_uInt16 PT_16 = 16 * 20; // 16 pt
const sal_uInt16 PT_18 = 18 * 20; // 18 pt
@@ -100,8 +102,9 @@ namespace
const sal_uInt16 aHeadlineSizes[ 2 * MAXLEVEL ] = {
// we do everything percentual now:
- 130, 115, 101, 95, 85,
- 85, 80, 80, 75, 75, // normal
+ PT_18, PT_16, PT_14, PT_13, PT_12,
+ PT_12, PT_10, PT_10, PT_9, PT_9, // normal
+
PT_24, PT_18, PT_14, PT_12, PT_10,
PT_7, PT_7, PT_7, PT_7, PT_7 // HTML mode
};
@@ -180,7 +183,7 @@ namespace
if( bHTMLMode )
aHItem.SetHeight( aHeadlineSizes[ MAXLEVEL + nLevel ] );
else
- aHItem.SetHeight( PT_14, aHeadlineSizes[ nLevel ] );
+ aHItem.SetHeight( aHeadlineSizes[ nLevel ] );
SetAllScriptItem( rSet, aHItem );
if( bItalic && !bHTMLMode )