Kaydet (Commit) 1855ffeb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid unnecessary bad downcast

Change-Id: I787f423a9e241c9f30c2fcdcaa4dbc4abc72029f
üst b18377bb
...@@ -212,7 +212,7 @@ void SwTxtFrm::CheckDirection( bool bVert ) ...@@ -212,7 +212,7 @@ void SwTxtFrm::CheckDirection( bool bVert )
{ {
const SwViewShell *pSh = getRootFrm()->GetCurrShell(); const SwViewShell *pSh = getRootFrm()->GetCurrShell();
const bool bBrowseMode = pSh && pSh->GetViewOptions()->getBrowseMode(); const bool bBrowseMode = pSh && pSh->GetViewOptions()->getBrowseMode();
CheckDir( GetTxtNode()->GetSwAttrSet().GetFrmDir().GetValue(), bVert, CheckDir( GetNode()->GetSwAttrSet().GetFrmDir().GetValue(), bVert,
true, bBrowseMode ); true, bBrowseMode );
} }
......
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