diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-19 12:44:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-19 12:44:41 +0100 |
commit | 3b998365f447b33f3e3932e0d20f6f4c9657a915 (patch) | |
tree | fea2a2cb568ce60782bb3a5841a59eae8a8f629e /lotuswordpro | |
parent | a8a9d0add52376da9fe5b2ffeb04d4df0e97e69a (diff) |
pLayout can't be null here
Change-Id: Ic8a9691a8ddf32eaf58227a9533113f9bac596eb
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index c241e84f1898..373c6f34f9b5 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -371,12 +371,12 @@ LwpVirtualLayout* LwpVirtualLayout::FindChildByType(LWP_LAYOUT_TYPE eType) while(!rID.IsNull()) { LwpVirtualLayout * pLayout = dynamic_cast<LwpVirtualLayout *>(rID.obj().get()); - if(!pLayout) + if (!pLayout) { break; } - if (pLayout && pLayout->GetLayoutType() == eType) + if (pLayout->GetLayoutType() == eType) { return pLayout; } |