summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2019-02-28 10:41:40 +0100
committerSerge Krot (CIB) <Serge.Krot@cib.de>2019-03-13 18:08:24 +0100
commit8fb5909a4ea71f0122c4b57a4312f7b1b3ecae2f (patch)
tree55aa8741c91f6f210dbb92ff087b733139897c58
parentd08b00ccddc136f6fbeb6fe1be9b3c694b5ff242 (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/69207 Reviewed-by: Serge Krot (CIB) <Serge.Krot@cib.de> Tested-by: Serge Krot (CIB) <Serge.Krot@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 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;