diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 13:27:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 10:24:14 +0100 |
commit | 8be5a49f377e5451da953aee598fd22f9665fbd6 (patch) | |
tree | d8aad16822c91a6a3115824e3840530e4d59a012 /sc/source/filter | |
parent | 814e50e6622ea9701094f3ec309a395d175c494f (diff) |
drop old tools/gen.hxx methods in sc
Change-Id: I3652c0a35a6873e80ee22d908a8969d09410776b
Reviewed-on: https://gerrit.libreoffice.org/50361
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter')
-rw-r--r-- | sc/source/filter/excel/xlpage.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xlpage.cxx b/sc/source/filter/excel/xlpage.cxx index 08327c90bbcc..ef9c68ca65e5 100644 --- a/sc/source/filter/excel/xlpage.cxx +++ b/sc/source/filter/excel/xlpage.cxx @@ -220,7 +220,12 @@ Size XclPageData::GetScPaperSize() const aSize = SvxPaperInfo::GetDefaultPaperSize(); if( !mbPortrait ) - ::std::swap( aSize.Width(), aSize.Height() ); + { + // swap width and height + long n = aSize.Width(); + aSize.setWidth(aSize.Height()); + aSize.setHeight(n); + } return aSize; } |