diff options
Diffstat (limited to 'framework/source/services/frame.cxx')
-rw-r--r-- | framework/source/services/frame.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index a4e21ae052b8..76dddcafd4f8 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -1528,10 +1528,7 @@ sal_Bool SAL_CALL Frame::setComponent(const css::uno::Reference< css::awt::XWind // A new component window doesn't know anything about current active/focus states. // Set this information on it! - if ( - (bHadFocus ) && - (xComponentWindow.is()) - ) + if ( bHadFocus && xComponentWindow.is() ) { xComponentWindow->setFocus(); } |