diff options
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 28533ea54e43..25b276fe7b87 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -84,6 +84,7 @@ #include <svx/svdocapt.hxx> #include <svl/srchitem.hxx> #include <svl/sharedstringpool.hxx> +#include <tools/UnitConversion.hxx> #include <unotools/collatorwrapper.hxx> #include <sfx2/docfile.hxx> @@ -5703,10 +5704,10 @@ void Test::testAnchoredRotatedShape() CPPUNIT_ASSERT_MESSAGE("must have a draw layer", pDrawLayer != nullptr); SdrPage* pPage = pDrawLayer->GetPage(0); CPPUNIT_ASSERT_MESSAGE("must have a draw page", pPage != nullptr); - m_pDoc->SetRowHeightRange( 0, MAXROW, 0, HMMToTwips( 1000 ) ); + m_pDoc->SetRowHeightRange(0, MAXROW, 0, convertMm100ToTwip(1000)); constexpr tools::Long TOLERANCE = 30; //30 hmm for ( SCCOL nCol = 0; nCol < MAXCOL; ++nCol ) - m_pDoc->SetColWidth( nCol, 0, HMMToTwips( 1000 ) ); + m_pDoc->SetColWidth(nCol, 0, convertMm100ToTwip(1000)); { //Add a rect tools::Rectangle aRect( 4000, 5000, 10000, 7000 ); @@ -5738,9 +5739,9 @@ void Test::testAnchoredRotatedShape() m_pDoc->SetDrawPageSize(0); // increase row 5 by 2000 hmm - m_pDoc->SetRowHeight( 5, 0, HMMToTwips( 3000 ) ); + m_pDoc->SetRowHeight(5, 0, convertMm100ToTwip(3000)); // increase col 6 by 1000 hmm - m_pDoc->SetColWidth( 6, 0, HMMToTwips( 2000 ) ); + m_pDoc->SetColWidth(6, 0, convertMm100ToTwip(2000)); aRotRect.setWidth( aRotRect.GetWidth() + 1000 ); aRotRect.setHeight( aRotRect.GetHeight() + 2000 ); |