Kaydet (Commit) dfdd01d1 authored tarafından Caolán McNamara's avatar Caolán McNamara

with navigator in sidebar, press space, crash

because root entries have UserData of type SwContentType while children have
UserData of type SwContent (both inherit from SwTypeNumber)

Change-Id: Iab7a4caaca5dfdae16aa4f6ede565e26aa4c73c9
üst 567cd904
...@@ -2762,10 +2762,9 @@ void SwContentTree::KeyInput(const KeyEvent& rEvent) ...@@ -2762,10 +2762,9 @@ void SwContentTree::KeyInput(const KeyEvent& rEvent)
m_pActiveShell->GetView().GetViewFrame()->GetWindow().ToTop(); m_pActiveShell->GetView().GetViewFrame()->GetWindow().ToTop();
} }
assert(dynamic_cast<SwContent*>(static_cast<SwTypeNumber*>(pEntry->GetUserData()))); SwContent* pCnt = dynamic_cast<SwContent*>(static_cast<SwTypeNumber*>(pEntry->GetUserData()));
SwContent* pCnt = static_cast<SwContent*>(pEntry->GetUserData());
if (pCnt->GetParent()->GetType() == ContentTypeId::DRAWOBJECT) if (pCnt && pCnt->GetParent()->GetType() == ContentTypeId::DRAWOBJECT)
{ {
SdrView* pDrawView = m_pActiveShell->GetDrawView(); SdrView* pDrawView = m_pActiveShell->GetDrawView();
if (pDrawView) if (pDrawView)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment