Kaydet (Commit) bf5c5f35 authored tarafından Laurent Godard's avatar Laurent Godard Kaydeden (comit) Eike Rathke

tdf#89460 test pChangeTrack before using it

Change-Id: Ic02351c448929daa7d4c5a9a00df9842c2c5aa91
Reviewed-on: https://gerrit.libreoffice.org/14553Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst b8a5e0cd
......@@ -586,8 +586,11 @@ void ScDocShell::Execute( SfxRequest& rReq )
if ( bDo )
{
if ( pChangeTrack->IsProtected() )
bDo = ExecuteChangeProtectionDialog( NULL );
if (pChangeTrack)
{
if ( pChangeTrack->IsProtected() )
bDo = ExecuteChangeProtectionDialog( NULL );
}
if ( bDo )
{
rDoc.EndChangeTracking();
......
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