Kaydet (Commit) 29f33d1a authored tarafından Miklos Vajna's avatar Miklos Vajna

SwTextBoxHelper::findTextBoxes: cleanup

Change-Id: Id926289a4b37b7a24f0e54f8f582a7658a713376
üst 6756ee47
......@@ -134,9 +134,8 @@ std::set<const SwFrmFmt*> SwTextBoxHelper::findTextBoxes(const SwNode& rNode)
const SwDoc* pDoc = rNode.GetDoc();
const SwCntntNode* pCntntNode = 0;
const SwCntntFrm* pCntntFrm = 0;
if (pDoc->getIDocumentLayoutAccess().GetCurrentViewShell() &&
(pCntntNode = rNode.GetCntntNode()) &&
(pCntntFrm = pCntntNode->getLayoutFrm(pDoc->getIDocumentLayoutAccess().GetCurrentLayout())))
bool bHaveViewShell = pDoc->getIDocumentLayoutAccess().GetCurrentViewShell();
if (bHaveViewShell && (pCntntNode = rNode.GetCntntNode()) && (pCntntFrm = pCntntNode->getLayoutFrm(pDoc->getIDocumentLayoutAccess().GetCurrentLayout())))
{
// We can use the layout information to iterate over only the frames which are anchored to us.
std::set<const SwFrmFmt*> aRet;
......
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