summaryrefslogtreecommitdiff
path: root/reportdesign/source/core/sdr/RptObject.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-11-29 10:22:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-11-29 10:22:33 +0100
commit361c6eb18c9ba4043652ba91036094379aeaf05f (patch)
treed1e610a5cb59c0d7a2f467b4d7b9675cc7b658e9 /reportdesign/source/core/sdr/RptObject.cxx
parent603bca03c1b546d627fa7c6fe33021690ce374c5 (diff)
Use Size::Width/Height instead of inherited Pair::A/B
Change-Id: Ie0346d5ec054fbe7eff1d4b73814a5e2b9f654c2
Diffstat (limited to 'reportdesign/source/core/sdr/RptObject.cxx')
-rw-r--r--reportdesign/source/core/sdr/RptObject.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/reportdesign/source/core/sdr/RptObject.cxx b/reportdesign/source/core/sdr/RptObject.cxx
index 32a7b77a54c0..fda99cebfab8 100644
--- a/reportdesign/source/core/sdr/RptObject.cxx
+++ b/reportdesign/source/core/sdr/RptObject.cxx
@@ -505,8 +505,8 @@ void OCustomShape::NbcMove( const Size& rSize )
{
OReportModel* pRptModel = static_cast<OReportModel*>(GetModel());
OXUndoEnvironment::OUndoEnvLock aLock(pRptModel->GetUndoEnv());
- m_xReportComponent->setPositionX(m_xReportComponent->getPositionX() + rSize.A());
- m_xReportComponent->setPositionY(m_xReportComponent->getPositionY() + rSize.B());
+ m_xReportComponent->setPositionX(m_xReportComponent->getPositionX() + rSize.Width());
+ m_xReportComponent->setPositionY(m_xReportComponent->getPositionY() + rSize.Height());
}
// set geometry properties
@@ -677,12 +677,12 @@ void OUnoObject::NbcMove( const Size& rSize )
OXUndoEnvironment::OUndoEnvLock aLock(pRptModel->GetUndoEnv());
// LLA: why there exists getPositionX and getPositionY and NOT getPosition() which return a Point?
- int nNewX = m_xReportComponent->getPositionX() + rSize.A();
+ int nNewX = m_xReportComponent->getPositionX() + rSize.Width();
m_xReportComponent->setPositionX(nNewX);
- int nNewY = m_xReportComponent->getPositionY() + rSize.B();
+ int nNewY = m_xReportComponent->getPositionY() + rSize.Height();
if (nNewY < 0 && !bUndoMode)
{
- aUndoSize.B() = abs(nNewY);
+ aUndoSize.Height() = abs(nNewY);
bPositionFixed = true;
nNewY = 0;
}
@@ -957,17 +957,17 @@ void OOle2Obj::NbcMove( const Size& rSize )
OXUndoEnvironment::OUndoEnvLock aLock(pRptModel->GetUndoEnv());
// LLA: why there exists getPositionX and getPositionY and NOT getPosition() which return a Point?
- int nNewX = m_xReportComponent->getPositionX() + rSize.A();
+ int nNewX = m_xReportComponent->getPositionX() + rSize.Width();
// can this hinder us to set components outside the area?
// if (nNewX < 0)
// {
// nNewX = 0;
// }
m_xReportComponent->setPositionX(nNewX);
- int nNewY = m_xReportComponent->getPositionY() + rSize.B();
+ int nNewY = m_xReportComponent->getPositionY() + rSize.Height();
if (nNewY < 0 && !bUndoMode)
{
- aUndoSize.B() = abs(nNewY);
+ aUndoSize.Height() = abs(nNewY);
bPositionFixed = true;
nNewY = 0;
}