summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-03 21:30:57 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-03 20:39:18 +0100
commit0981f1d8c8a8918b5f28bf5605023b07e73b0d44 (patch)
tree6d7a9588469d462bdb940f7c22d630699ef9b733 /sc/source/ui/app
parent726c18db3215ec74135f51365322a6b531f328af (diff)
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>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/client.cxx4
1 files changed, 1 insertions, 3 deletions
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()