Fix plot titles for RFT and PLT plots from old project files.

This commit is contained in:
Gaute Lindkvist 2020-01-08 14:08:58 +01:00
parent 06f1db671e
commit 3fc7378b8f
2 changed files with 7 additions and 4 deletions

View File

@ -103,8 +103,11 @@ RimMultiPlotWindow& RimMultiPlotWindow::operator=( RimMultiPlotWindow&& rhs )
m_plots.push_back( plot );
}
// Deliberately don't set m_plotWindowTitle. This operator is used for copying parameters from children.
// This only happens for some plots that used to own a plot but now inherits the plot.
// These all had their own description at top level which we don't want to overwrite.
m_showPlotWindowTitle = rhs.m_showPlotWindowTitle;
m_plotWindowTitle = rhs.m_plotWindowTitle;
m_columnCount = rhs.m_columnCount;
m_rowsPerPage = rhs.m_rowsPerPage;
m_showIndividualPlotTitles = rhs.m_showIndividualPlotTitles;

View File

@ -132,9 +132,9 @@ RimWellLogPlot& RimWellLogPlot::operator=( RimWellLogPlot&& rhs )
m_depthAxisGridVisibility = rhs.m_depthAxisGridVisibility();
m_isAutoScaleDepthEnabled = rhs.m_isAutoScaleDepthEnabled();
auto nameConfig = rhs.m_nameConfig();
rhs.m_nameConfig.removeChildObject( nameConfig );
m_nameConfig = nameConfig;
// Deliberately don't copy m_nameConfig. This operator is used for copying parameters from children.
// This only happens for some plots that used to own a plot but now inherits the plot.
// These all had their own description at top level which we don't want to overwrite.
m_minAvailableDepth = rhs.m_minAvailableDepth;
m_maxAvailableDepth = rhs.m_maxAvailableDepth;