diff options
author | Serge Krot <Serge.Krot@cib.de> | 2019-02-28 10:41:40 +0100 |
---|---|---|
committer | Xisco FaulĂ <xiscofauli@libreoffice.org> | 2019-03-13 20:08:39 +0100 |
commit | 90752744ec69241c41140db9f21bb0c9aabea957 (patch) | |
tree | 9957c446f05ea479c2c869bcb9ae9ffc90d6451e /sc | |
parent | 24c1ef579eed3827fc34312a9127244a13b9b5ac (diff) |
tdf#121040 sc: use pixel-per-twips in X for horizontal value conversion
Change-Id: I25bc3b3ec42ef5b026c2cd9572e8ff1863ed8c2d
Reviewed-on: https://gerrit.libreoffice.org/68492
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
(cherry picked from commit 1b4cfd79240f153703a02d63639b3895ab7c1d1b)
Reviewed-on: https://gerrit.libreoffice.org/69206
Tested-by: Jenkins
Reviewed-by: Xisco FaulĂ <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 1590ab55380b..2a8a135f3f88 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -347,7 +347,7 @@ long ScColumn::GetNeededSize( long nDocPixel = static_cast<long>( ( pDocument->GetColWidth( nCol,nTab ) - pMargin->GetLeftMargin() - pMargin->GetRightMargin() - nIndent ) - * nPPT ); + * nPPTX ); nDocPixel = (nDocPixel * 9) / 10; // for safety if ( aSize.Width() > nDocPixel ) bEditEngine = true; |