Skip to content
Snippets Groups Projects
Commit 3f5c2242 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

no need to first set nullptr

parent c0bfed83
No related branches found
No related tags found
1 merge request!1990cleanup and simplification in GUI plot context
...@@ -43,11 +43,7 @@ void MaskGraphicsProxy::setIntensityItem(IntensityDataItem* intensityDataItem) ...@@ -43,11 +43,7 @@ void MaskGraphicsProxy::setIntensityItem(IntensityDataItem* intensityDataItem)
void MaskGraphicsProxy::setSceneAdaptor(SceneAdaptor* sceneAdaptor) void MaskGraphicsProxy::setSceneAdaptor(SceneAdaptor* sceneAdaptor)
{ {
if (m_sceneAdaptor)
m_sceneAdaptor->setColorMapPlot(nullptr);
m_sceneAdaptor = sceneAdaptor; m_sceneAdaptor = sceneAdaptor;
if (m_sceneAdaptor) if (m_sceneAdaptor)
m_sceneAdaptor->setColorMapPlot(m_colorMap); m_sceneAdaptor->setColorMapPlot(m_colorMap);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment