diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-10 20:27:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-10 21:07:56 +0100 |
commit | 5cfe8815358956795501cb2d471ff5389e219fb6 (patch) | |
tree | 3f80dddf3b153c091608ab43abc5c939e01b3bab | |
parent | 97865e0a72272d5be8c65d636eafdba04736a58d (diff) |
coverity#705931 Dereference before null check
Change-Id: I7b245202daf5084a9cd73d0fb2df88abb2db4e78
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 91a21d2d0316..1736839c7b1e 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -1977,7 +1977,7 @@ KSHORT SwTxtFrm::GetParHeight() const // FME, OD 08.01.2004 #i11859# - refactoring and improve code const SwLineLayout* pLineLayout = GetPara(); - KSHORT nHeight = pLineLayout->GetRealHeight(); + KSHORT nHeight = pLineLayout ? pLineLayout->GetRealHeight() : 0; if( GetOfst() && !IsFollow() ) // Ist dieser Absatz gescrollt? Dann ist unsere nHeight *= 2; // bisherige Hoehe mind. eine Zeilenhoehe zu gering // OD 2004-03-04 #115793# |