summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-20 21:16:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-21 20:13:14 +0200
commit0785b156e52705f8b8c6cd0ff5c71f45af9de4fe (patch)
tree02ae8a72b9684bd27bd00b11496ab0712ac44b4e
parente9d1d8a129a86cb67814007b3b2b614e42d66638 (diff)
pvs-studio: A part of conditional expression is always true
Change-Id: I57e3feeedf6a235c576bfc2ed3a4bd98eb86a5c4 Reviewed-on: https://gerrit.libreoffice.org/62109 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--framework/source/layoutmanager/toolbarlayoutmanager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx
index e374da107921..8451bef2bbfc 100644
--- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx
+++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx
@@ -3388,7 +3388,7 @@ awt::DockingData SAL_CALL ToolbarLayoutManager::docking( const awt::DockingEvent
aNewDockingRect.getWidth(), aNewDockingRect.getHeight() );
aDockingData.TrackingRectangle = aNewTrackingRect;
}
- else if ( pToolBox && bDockingInProgress )
+ else if (pToolBox)
{
bool bIsHorizontal = isToolboxHorizontalAligned( pToolBox );
awt::Size aFloatSize = aUIDockingElement.m_aFloatingData.m_aSize;