diff options
Diffstat (limited to 'svx/source/form/fmobj.cxx')
-rw-r--r-- | svx/source/form/fmobj.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 043c84eec0c9..0ce45b66c130 100644 --- a/svx/source/form/fmobj.cxx +++ b/svx/source/form/fmobj.cxx @@ -112,7 +112,7 @@ void FmFormObj::impl_checkRefDevice_nothrow( bool _force ) return; OutputDevice* pCurrentRefDevice = pFormModel ? pFormModel->GetRefDevice() : NULL; - if ( ( m_pLastKnownRefDevice == pCurrentRefDevice ) && !_force ) + if ( ( m_pLastKnownRefDevice.get() == pCurrentRefDevice ) && !_force ) return; Reference< XControlModel > xControlModel( GetUnoControlModel() ); @@ -120,7 +120,7 @@ void FmFormObj::impl_checkRefDevice_nothrow( bool _force ) return; m_pLastKnownRefDevice = pCurrentRefDevice; - if ( m_pLastKnownRefDevice == NULL ) + if ( !m_pLastKnownRefDevice ) return; try |