summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmltexti.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-04 13:39:38 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-11 10:19:05 +0000
commit84272d115da1165ac5f7cf4ae53875855d762b25 (patch)
treefa97d5319616492e230ebe03a08e1f898c389d77 /sw/source/filter/xml/xmltexti.cxx
parent8568fec3b942e725a0114ff137a61b3292e079ed (diff)
Introduce twip/mm100 conversion functions instead of duplicated macros
Change-Id: Ib689e35b417e0e9016cd6a239c986e0603a99d62 Reviewed-on: https://gerrit.libreoffice.org/8837 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmltexti.cxx')
-rw-r--r--sw/source/filter/xml/xmltexti.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx
index 61c91fc16526..43ce1c975ea4 100644
--- a/sw/source/filter/xml/xmltexti.cxx
+++ b/sw/source/filter/xml/xmltexti.cxx
@@ -100,10 +100,10 @@ static void lcl_putHeightAndWidth ( SfxItemSet &rItemSet,
{
if( nWidth > 0 && nHeight > 0 )
{
- nWidth = MM100_TO_TWIP( nWidth );
+ nWidth = convertMm100ToTwip( nWidth );
if( nWidth < MINFLY )
nWidth = MINFLY;
- nHeight = MM100_TO_TWIP( nHeight );
+ nHeight = convertMm100ToTwip( nHeight );
if( nHeight < MINFLY )
nHeight = MINFLY;
rItemSet.Put( SwFmtFrmSize( ATT_FIX_SIZE, nWidth, nHeight ) );