diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 17:44:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 17:45:20 +0000 |
commit | 86d2f25e3bd3a7d94087ac1b277ede0a58e26720 (patch) | |
tree | 70204ff06c13a95c45d75629dd22771d233e104f /lotuswordpro | |
parent | 9e04fac9ed56cbe709485430f60ee93d40127204 (diff) |
more use of references to avoid crashing
Change-Id: I03748695efbe17d59aba09f88d5c6fcd174113c9
(cherry picked from commit 69d166a0277d21d63b97ffc965d82bb301d55502)
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index 8efc821bca36..9db1307ed006 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -568,8 +568,8 @@ void LwpCellLayout::RegisterDefaultCell() */ void LwpCellLayout::RegisterStyle() { - LwpVirtualLayout * pParent = dynamic_cast<LwpVirtualLayout *>(GetParent().obj().get()); - if (!pParent || pParent->GetLayoutType() != LWP_ROW_LAYOUT) + rtl::Reference<LwpVirtualLayout> xParent(dynamic_cast<LwpVirtualLayout *>(GetParent().obj().get())); + if (!xParent.is() || xParent->GetLayoutType() != LWP_ROW_LAYOUT) { // default cell layout, we must register 4 styles for it RegisterDefaultCell(); |