sw/source/core/text/porfly.cxx | 6 +++--- sw/source/core/text/porfly.hxx | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-)
New commits: commit 2fc262d3a7bf3be8d318b3f194ccab2a301ade8c Author: Bjoern Michaelsen <bjoern.michael...@canonical.com> Date: Mon Dec 19 05:44:57 2016 +0100 GetDrawContact() isnt called anymore Change-Id: Ib054f883d86ff2e68c118972abd6e3d0f12b181c Reviewed-on: https://gerrit.libreoffice.org/32151 Reviewed-by: Björn Michaelsen <bjoern.michael...@canonical.com> Tested-by: Björn Michaelsen <bjoern.michael...@canonical.com> diff --git a/sw/source/core/text/porfly.cxx b/sw/source/core/text/porfly.cxx index a0ee4b9..0e211ec 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 fdedd26..7e173f9 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; };
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits