[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Nov 3 19:39:49 UTC 2018


 sc/source/ui/app/client.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 0981f1d8c8a8918b5f28bf5605023b07e73b0d44
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sat Nov 3 21:30:57 2018 +0300
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sat Nov 3 20:39:18 2018 +0100

    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 at collabora.com>

diff --git a/sc/source/ui/app/client.cxx b/sc/source/ui/app/client.cxx
index 316e31bf875f..42da11f3d8b4 100644
--- a/sc/source/ui/app/client.cxx
+++ b/sc/source/ui/app/client.cxx
@@ -172,10 +172,8 @@ void ScClient::ObjectAreaChanged()
 
         //  set document modified (SdrModel::SetChanged is not used)
         pViewSh->GetViewData().GetDocShell()->SetDrawModified();
+        pViewSh->ScrollToObject(pDrawObj);
     }
-
-    if (pDrawObj)
-        pViewSh->ScrollToObject( pDrawObj );
 }
 
 void ScClient::ViewChanged()


More information about the Libreoffice-commits mailing list