summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2019-02-28 10:41:40 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-03-04 14:16:01 +0100
commit1b4cfd79240f153703a02d63639b3895ab7c1d1b (patch)
treebdd1726b1caa0bea0230939a1882e8ada2b6f0bf
parentAvoid storing potentially negative and unused value in sal_uInt16 var (diff)
downloadcore-1b4cfd79240f153703a02d63639b3895ab7c1d1b.tar.gz
core-1b4cfd79240f153703a02d63639b3895ab7c1d1b.zip
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>
-rw-r--r--sc/source/core/data/column2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 7639ca7ddc26..4e75b4f3bd0f 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -346,7 +346,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;