Fix DevTools inspect element at (issue #2115)

This commit is contained in:
Marshall Greenblatt 2017-03-16 17:13:06 -04:00
parent bab532b35b
commit c6838d8ca8

View File

@ -211,7 +211,7 @@ void CefDevToolsFrontend::DocumentAvailableInMainFrame() {
if (agent_host != agent_host_) {
agent_host_ = agent_host;
agent_host_->AttachClient(this);
if (inspect_element_at_.IsEmpty()) {
if (!inspect_element_at_.IsEmpty()) {
agent_host_->InspectElement(
this, inspect_element_at_.x, inspect_element_at_.y);
}