summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/text/porfly.cxx6
-rw-r--r--sw/source/core/text/porfly.hxx2
2 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/core/text/porfly.cxx b/sw/source/core/text/porfly.cxx
index a0ee4b9c12dc..0e211ec355e6 100644
--- a/sw/source/core/text/porfly.cxx
+++ b/sw/source/core/text/porfly.cxx
@@ -308,18 +308,18 @@ SdrObject* sw::DrawFlyCntPortion::GetSdrObj(const SwTextFrame& rFrame)
{
SdrObject* pSdrObj;
// Determine drawing object ('master' or 'virtual') by frame
- pSdrObj = GetDrawContact()->GetDrawObjectByAnchorFrame(rFrame);
+ pSdrObj = m_pContact->GetDrawObjectByAnchorFrame(rFrame);
if(!pSdrObj)
{
SAL_WARN("sw.core", "SwFlyCntPortion::SetBase(..) - No drawing object found by <GetDrawContact()->GetDrawObjectByAnchorFrame( rFrame )>");
- pSdrObj = GetDrawContact()->GetMaster();
+ pSdrObj = m_pContact->GetMaster();
}
// Call <SwAnchoredDrawObject::MakeObjPos()> to assure that flag at
// the <DrawFrameFormat> and at the <SwAnchoredDrawObject> instance are
// correctly set
if(pSdrObj)
- GetDrawContact()->GetAnchoredObj(pSdrObj)->MakeObjPos();
+ m_pContact->GetAnchoredObj(pSdrObj)->MakeObjPos();
return pSdrObj;
}
diff --git a/sw/source/core/text/porfly.hxx b/sw/source/core/text/porfly.hxx
index fdedd26d7123..7e173f98969e 100644
--- a/sw/source/core/text/porfly.hxx
+++ b/sw/source/core/text/porfly.hxx
@@ -87,8 +87,6 @@ namespace sw
public:
DrawFlyCntPortion(SwDrawContact* pDrawContact);
static DrawFlyCntPortion* Create(const SwTextFrame& rFrame, SwDrawContact* pDrawContact, const Point& rBase, long nAsc, long nDescent, long nFlyAsc, long nFlyDesc, AsCharFlags nFlags);
- inline SwDrawContact* GetDrawContact() { return m_pContact; }
- inline const SwDrawContact* GetDrawContact() const { return m_pContact; }
virtual void Paint(const SwTextPaintInfo& rInf) const override;
virtual ~DrawFlyCntPortion() override;
};