summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-16 15:15:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-17 08:37:14 +0100
commitcc9e89816f8193989ea4ee5bfd9b1c39b196b5e7 (patch)
tree8533ccb5251d057e5607bc85bcf9caadf6183783
parent2f734c0434ec6858cb5c666a72377b540dcde235 (diff)
Misplaced static_cast
...introduced with 58d863eec084029716eccab7f941727fc650415e "sc: replace local macros" changing from > #define HMM2XL(x) ((x)/26.5)+0.5 [...] > aFrom = Rectangle( nCol-1, static_cast<long>(HMM2XL( nColOff )), [...] to > inline long lcl_hmm2px(long nPixel) > { > return static_cast<long>(nPixel*PIXEL_PER_INCH/1000.0/CM_PER_INCH)+0.5; > } [...] > aFrom = Rectangle( nCol-1, lcl_hmm2px( nColOff ), [...] Change-Id: Ia98d659e494255e5dbb4e9d47d20df121ccdcc44 Reviewed-on: https://gerrit.libreoffice.org/47993 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sc/source/filter/excel/xeescher.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx
index fcd3d102659b..93f9bb047cf9 100644
--- a/sc/source/filter/excel/xeescher.cxx
+++ b/sc/source/filter/excel/xeescher.cxx
@@ -104,7 +104,7 @@ namespace
inline long lcl_hmm2px(long nPixel)
{
- return static_cast<long>(nPixel*PIXEL_PER_INCH/1000.0/CM_PER_INCH)+0.5;
+ return static_cast<long>(nPixel*PIXEL_PER_INCH/1000.0/CM_PER_INCH + 0.5);
}
const char *ToHorizAlign( SdrTextHorzAdjust eAdjust )