Merge pull request #3816 from Beep6581/cppcheck3
Merged to get more tests. Additional fixes will follow.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user