Skip to content

Commit 0eb1837

Browse files
committed
Use reference dataset
1 parent 936b0d8 commit 0eb1837

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ScatterplotPlugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ ScatterplotPlugin::ScatterplotPlugin(const PluginFactory* factory) :
138138
if (datasetsMimeData == nullptr)
139139
return dropRegions;
140140

141-
if (datasetsMimeData->getDatasets().count() > 1)
141+
if (datasetsMimeData->getDatasetsCount() > 1)
142142
return dropRegions;
143143

144-
const auto dataset = datasetsMimeData->getDatasets().first();
144+
const auto& dataset = datasetsMimeData->getDatasetsRef().first();
145145
const auto datasetGuiName = dataset->text();
146146
const auto datasetId = dataset->getId();
147147
const auto dataType = dataset->getDataType();

0 commit comments

Comments
 (0)