Skip to content

Commit

Permalink
Refs #11094 Resolve Coverity issues in minimizeWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Feb 16, 2015
1 parent 02b3e12 commit 2596e11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Expand Up @@ -9086,8 +9086,10 @@ void ApplicationWindow::maximizeWindow(MdiSubWindow *w)

void ApplicationWindow::minimizeWindow(MdiSubWindow *w)
{
auto wli = dynamic_cast<WindowListItem*>(lv->currentItem());

if (!w)
w = (dynamic_cast<WindowListItem*>(lv->currentItem()))->window();
w = wli->window();

if (!w)
return;
Expand Down

0 comments on commit 2596e11

Please sign in to comment.