summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()