mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Fixed typo of firstAncestorOrThisOfType
This commit is contained in:
@@ -40,7 +40,7 @@ bool RicDeleteWellLogPlotTrackFeature::isCommandEnabled()
|
||||
if (selection.size() > 0)
|
||||
{
|
||||
RimWellLogPlot* wellLogPlot = NULL;
|
||||
selection[0]->firstAnchestorOrThisOfType(wellLogPlot);
|
||||
selection[0]->firstAncestorOrThisOfType(wellLogPlot);
|
||||
if (wellLogPlot->trackCount() > 1)
|
||||
{
|
||||
return true;
|
||||
@@ -63,7 +63,7 @@ void RicDeleteWellLogPlotTrackFeature::onActionTriggered(bool isChecked)
|
||||
RimWellLogTrack* track = selection[i];
|
||||
|
||||
RimWellLogPlot* wellLogPlot = NULL;
|
||||
track->firstAnchestorOrThisOfType(wellLogPlot);
|
||||
track->firstAncestorOrThisOfType(wellLogPlot);
|
||||
if (wellLogPlot && wellLogPlot->trackCount() > 1)
|
||||
{
|
||||
wellLogPlot->removeTrack(track);
|
||||
|
||||
Reference in New Issue
Block a user