Merge pull request #3816 from Beep6581/cppcheck3

Merged to get more tests. Additional fixes will follow.
This commit is contained in:
Ingo Weyrich
2017-04-09 23:58:07 +02:00
committed by GitHub
41 changed files with 225 additions and 253 deletions

View File

@@ -2110,12 +2110,6 @@ void EditorPanel::updateHistogramPosition (int oldPosition, int newPosition)
// No histogram
if (!oldPosition) {
// An histogram actually exist, we delete it
if (oldPosition == 1) {
removeIfThere (leftbox, histogramPanel, false);
} else if (oldPosition == 2) {
removeIfThere (vboxright, histogramPanel, false);
}
delete histogramPanel;
histogramPanel = nullptr;
}