tdf#163486: PVS: Expression is always true
V547 Expression 'pChartWindow' is always true. V547 Expression 'pChartWindow' is always true. Change-Id: I3edefe4392386397e5666420b31cc40096c6f3cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175465 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
parent
fb8644e8e1
commit
a8f7368b76
1 changed files with 6 additions and 13 deletions
|
@ -982,21 +982,15 @@ void ChartController::execute_Command( const CommandEvent& rCEvt )
|
|||
{
|
||||
SolarMutexGuard aGuard;
|
||||
auto pChartWindow(GetChartWindow());
|
||||
bool bIsAction = false;
|
||||
{
|
||||
DrawViewWrapper* pDrawViewWrapper = m_pDrawViewWrapper.get();
|
||||
if(!pChartWindow || !pDrawViewWrapper)
|
||||
return;
|
||||
bIsAction = m_pDrawViewWrapper->IsAction();
|
||||
}
|
||||
DrawViewWrapper* pDrawViewWrapper = m_pDrawViewWrapper.get();
|
||||
if(!pChartWindow || !pDrawViewWrapper)
|
||||
return;
|
||||
bool bIsAction = m_pDrawViewWrapper->IsAction();
|
||||
|
||||
// pop-up menu
|
||||
if(rCEvt.GetCommand() == CommandEventId::ContextMenu && !bIsAction)
|
||||
{
|
||||
{
|
||||
if(pChartWindow)
|
||||
pChartWindow->ReleaseMouse();
|
||||
}
|
||||
pChartWindow->ReleaseMouse();
|
||||
|
||||
if( m_aSelection.isSelectionDifferentFromBeforeMouseDown() )
|
||||
impl_notifySelectionChangeListeners();
|
||||
|
@ -1006,8 +1000,7 @@ void ChartController::execute_Command( const CommandEvent& rCEvt )
|
|||
Point aPos( rCEvt.GetMousePosPixel() );
|
||||
if( !rCEvt.IsMouseEvent() )
|
||||
{
|
||||
if(pChartWindow)
|
||||
aPos = pChartWindow->GetPointerState().maPos;
|
||||
aPos = pChartWindow->GetPointerState().maPos;
|
||||
}
|
||||
|
||||
OUString aMenuName;
|
||||
|
|
Loading…
Reference in a new issue