Kaydet (Commit) 81ca9efb authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide: trivial GetNode() conversion in draw/

Change-Id: I660953a6e101aae0f6dad38b74d0a5fa8f254221
üst b6912750
...@@ -362,14 +362,11 @@ bool SwVirtFlyDrawObj::ContainsSwGrfNode() const ...@@ -362,14 +362,11 @@ bool SwVirtFlyDrawObj::ContainsSwGrfNode() const
if(nullptr != pFlyFrame && pFlyFrame->Lower() && pFlyFrame->Lower()->IsNoTextFrame()) if(nullptr != pFlyFrame && pFlyFrame->Lower() && pFlyFrame->Lower()->IsNoTextFrame())
{ {
const SwContentFrame* pCntFr(static_cast<const SwContentFrame*>(pFlyFrame->Lower())); const SwNoTextFrame *const pNTF(static_cast<const SwNoTextFrame*>(pFlyFrame->Lower()));
if(nullptr != pCntFr) const SwGrfNode *const pGrfNd(pNTF->GetNode()->GetGrfNode());
{
const SwGrfNode* pGrfNd(pCntFr->GetNode()->GetGrfNode());
return nullptr != pGrfNd; return nullptr != pGrfNd;
}
} }
return false; return false;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <pagefrm.hxx> #include <pagefrm.hxx>
#include <rootfrm.hxx> #include <rootfrm.hxx>
#include <cntfrm.hxx> #include <cntfrm.hxx>
#include <notxtfrm.hxx>
#include <flyfrm.hxx> #include <flyfrm.hxx>
#include <frmfmt.hxx> #include <frmfmt.hxx>
#include <dflyobj.hxx> #include <dflyobj.hxx>
...@@ -832,9 +833,9 @@ void SwDrawView::CheckPossibilities() ...@@ -832,9 +833,9 @@ void SwDrawView::CheckPossibilities()
pFrame = pFly->GetAnchorFrame(); pFrame = pFly->GetAnchorFrame();
if ( pFly->Lower() && pFly->Lower()->IsNoTextFrame() ) if ( pFly->Lower() && pFly->Lower()->IsNoTextFrame() )
{ {
const SwContentFrame* pCntFr(static_cast<const SwContentFrame*>(pFly->Lower())); const SwNoTextFrame *const pNTF(static_cast<const SwNoTextFrame*>(pFly->Lower()));
const SwOLENode* pOLENd = pCntFr->GetNode()->GetOLENode(); const SwOLENode *const pOLENd = pNTF->GetNode()->GetOLENode();
const SwGrfNode* pGrfNd = pCntFr->GetNode()->GetGrfNode(); const SwGrfNode *const pGrfNd = pNTF->GetNode()->GetGrfNode();
if ( pOLENd ) if ( pOLENd )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment