tdf#120703 PVS: V581

V581 The conditional expressions of the 'if' statements situated alongside
     each other are identical. Check lines: 153, 181.

Change-Id: Ifcec371bc2207bdd3594e514f0eab1d06dd24c84
Reviewed-on: https://gerrit.libreoffice.org/62820
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
diff --git a/sc/source/ui/app/client.cxx b/sc/source/ui/app/client.cxx
index 316e31b..42da11f 100644
--- a/sc/source/ui/app/client.cxx
+++ b/sc/source/ui/app/client.cxx
@@ -172,10 +172,8 @@

        //  set document modified (SdrModel::SetChanged is not used)
        pViewSh->GetViewData().GetDocShell()->SetDrawModified();
        pViewSh->ScrollToObject(pDrawObj);
    }

    if (pDrawObj)
        pViewSh->ScrollToObject( pDrawObj );
}

void ScClient::ViewChanged()